![]() |
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 |
| Unix Arithmatic operation issue , datatype issue | thambi | Shell Programming and Scripting | 23 | 02-19-2008 07:19 AM |
| Variable Substitution Issue | calredd | SUN Solaris | 4 | 02-16-2008 11:42 AM |
| passing a variable inside a variable to a function | KingVikram | UNIX for Dummies Questions & Answers | 2 | 01-14-2008 08:28 PM |
| Variable for -name causing issue in Find command | ParNone | UNIX for Dummies Questions & Answers | 2 | 03-24-2006 06:48 PM |
| ksh/Linux: Variable scoping issue? Pl. help! | jasmeet100 | Shell Programming and Scripting | 2 | 09-30-2005 06:35 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
sed variable issue
I'm writting a krn shell script and i'm having an issue with a variable using sed.
If someone enters a variable with a " /" the sed command doesn't read it right. example. a='12000/10-DC' b='12000/10-AC' cat file | sed "s/$a/$b/" How can i correct this issue? Will the fix to this problem also work if someone enters a variable without a " /" ? What is it called when a variable has a character like this? I didn't know how to search for this issue correctly. Thanks. ![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|