Home > Archive > PERL Beginners > August 2005 > can any body tell me how to remove quotes from a name.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
can any body tell me how to remove quotes from a name.
|
|
| Mayank Ahuja 2005-08-31, 7:55 am |
|
Hi all
Could any body tell me how to get
mayank
from
'mayank'
sp. by map or grep command
(means I just want to remove the single quotes. tht's it)
thankx
n
with regards
Mayank Ahuja
Assistant System Engineer
Tata Consultancy Services Limited
Ph:- 044-55555816
Cell:- 9283199460
Mailto: mayank.ahuja@tcs.com
Website: http://www.tcs.com
Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the informa
tion contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachment
s. Thank you
| |
| Eric Walker 2005-08-31, 6:55 pm |
| if the 'mayank' is in a text file, then
cat file | sed s/'//g > newfile
this should do it I think.
On Wednesday 31 August 2005 03:42 am, mayank.ahuja@tcs.com wrote:
> Hi all
> Could any body tell me how to get
> mayank
> from
> 'mayank'
> sp. by map or grep command
> (means I just want to remove the single quotes. tht's it)
>
>
> thankx
> n
> with regards
>
>
>
> Mayank Ahuja
> Assistant System Engineer
> Tata Consultancy Services Limited
> Ph:- 044-55555816
> Cell:- 9283199460
> Mailto: mayank.ahuja@tcs.com
> Website: http://www.tcs.com
>
> Notice: The information contained in this e-mail message and/or attachments
> to it may contain confidential or privileged information. If you are not
> the intended recipient, any dissemination, use, review, distribution,
> printing or copying of the information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If you have received
> this communication in error, please notify us by reply e-mail or telephone
> and immediately and permanently delete the message and any attachments.
> Thank you
--
Eric Walker
EDA/CAD Engineer
Work: 208-368-2573
| |
| Scott Taylor 2005-08-31, 6:55 pm |
|
Eric Walker said:
> if the 'mayank' is in a text file, then
> cat file | sed s/'//g > newfile
>
> this should do it I think.
LMAO - Nice, for a top poster,
[color=darkred]
> On Wednesday 31 August 2005 03:42 am, mayank.ahuja@tcs.com wrote:
now for something completely different:
perl way:
my $something = "'mayank'";
$something =~ s/'//g;
[color=darkred]
Maybe you want a different list, not perl begginers?
--
Scott
| |
| Bob Showalter 2005-08-31, 6:55 pm |
| mayank.ahuja@tcs.com wrote:
> Could any body tell me how to get mayank from 'mayank'
$var =~ tr/'//d;
> sp. by map or grep command
Those functions are not appropriate to the problem as you've described it
|
|
|
|
|