![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Removing a character using sed | Raynon | Shell Programming and Scripting | 6 | 11-21-2008 11:24 AM |
| read a variable character by character, substitute characters with something else | vipervenom25 | UNIX for Dummies Questions & Answers | 2 | 06-06-2008 04:18 PM |
| Removing '." character using SED | arvindcgi | Shell Programming and Scripting | 2 | 06-03-2008 08:28 AM |
| removing new line character | ammu | Shell Programming and Scripting | 2 | 01-15-2008 10:12 AM |
| Removing the ^M character in VI | julesinbath | UNIX for Dummies Questions & Answers | 2 | 04-29-2002 10:13 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Removing character ' from a variable
Hello there,
I have a variable in the form of '/example/file.txt' . I want to remove the ' characters from the beginning and the end so that the my new variable becomes /example/file.txt . How can I do it in a script? I know this is a fairly easy question, but i wasn't able to implement it. |
|
||||
|
or
search the forums ![]() am sure there are multiple threads about the same topic or related to that using sed to search and replace the character(s) in your case its going to be searching " ' " and replacing with "" |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|