![]() |
|
|
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 |
| How to handle backslash in grep string | rajbal | UNIX for Advanced & Expert Users | 6 | 06-18-2007 09:22 PM |
| How ro handle backslash character in grep? | rajbal | Shell Programming and Scripting | 1 | 06-18-2007 09:19 PM |
| ignoring backslash while executing command | agalkin | Shell Programming and Scripting | 6 | 11-16-2005 06:04 PM |
| backslash issues | Bab00shka | UNIX for Dummies Questions & Answers | 5 | 07-09-2004 09:53 AM |
| Adding a backslash to users' input | netguy | Shell Programming and Scripting | 13 | 04-30-2004 06:06 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I think it should be / instead of % in the code..
|
|
|||||
|
Quote:
readDefault() { ARGS="" N=1 LOCALBUF="" until [ $N -eq $# ] do eval ARG=\${$N} ARGS=" $ARGS $ARG" N=`expr $N + 1` done read $ARGS LOCALBUF if [ -n "$LOCALBUF" ] then VARNAME=${!#} export $VARNAME=$LOCALBUF else echo "Using current value." fi } echo "Please type directory where the profiles are placed: (current value: $PROFILESROOTDIR)" readDefault -e PROFILESROOTDIR In this function the \ character is ignored from variable given by user and removed from it. DO you have any ideea how to ignore the \ characters in this function? Thanks, Bianca |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|