![]() |
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 |
| Back-to-Back Connection using HBAs | aldowsary | IP Networking | 3 | 11-28-2008 10:21 PM |
| Help with SED and forward slash | gseyforth | Shell Programming and Scripting | 3 | 05-26-2008 07:29 AM |
| back to back printing in UNIX | amirthraj_12 | AIX | 3 | 05-06-2008 07:42 AM |
| ftp username with back slash | sam99 | Shell Programming and Scripting | 1 | 04-29-2008 09:19 AM |
| awk slash | McLan | Shell Programming and Scripting | 6 | 04-09-2008 02:00 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi All,
print "path/executable_file parameters" \ > path/file1 print "path/executable_file parameters" \ > path/file2 print "path/executable_file parameters" \ > path/file3 chmod 775 path/file1 \ path/file2 \ path/file3 could you please let me know how the back slash will be useful and its effect in using in the shell script. please explain how its working in the above print and chmod. i read some documents about back slash "preceding the same string with a backslash, \, also removes the special meaning of a character, or string". i am not getting what it is actually doing. please let me know. Thanks. |
|
||||
|
Hi vbe,
Thanks for your update. i read some documents about back slash, i am not clear with the below statement "preceding the same string with a backslash, \, also removes the special meaning of a character, or string". what it means. |
|
||||
|
There are some special characters in Unix for ex :" $ & \ ~"
putting a \ before a special character inverts the special meaning of a character. so it is getting a simple ascii text Code:
sptmw@mwvm:~$ echo ~ /home/sptmw sptmw@mwvm:~$ echo \~ ~ echo \b hello in some terminals causes bold text and one line \[ENTER] second line means ignore the [ENTER] Key an handle everything as one line |
|
||||
|
If you have a file named "this$file" (the $ is part of the name), and you want to handle it with a shell you have to remove its special meaning for the shell (it is used to exctract variable data for example) by preceding it by a \
Code:
pobo@intrepid /tmp $ touch 'this$file' pobo@intrepid /tmp $ ls thi* this$file pobo@intrepid /tmp $ rm this$file rm: cannot remove `this': No such file or directory pobo@intrepid /tmp $ rm this\$file rm: remove regular empty file `this$file'? y pobo@intrepid /tmp $ |
|
||||
|
yes you're right
|
| Sponsored Links | ||
|
|