![]() |
|
|
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 |
| SED command is not executing within the shell | naushad | UNIX for Dummies Questions & Answers | 1 | 03-26-2008 04:35 AM |
| Remotely executing awk command | bishweshwar | Shell Programming and Scripting | 1 | 07-14-2007 06:20 PM |
| Executing a unix command | jacob23 | UNIX for Dummies Questions & Answers | 5 | 12-20-2006 10:36 PM |
| executing dir or ls command via FTP | alx | Shell Programming and Scripting | 5 | 01-27-2006 06:13 PM |
| executing the su command from a script. | shailendrat | Shell Programming and Scripting | 6 | 04-11-2005 02:44 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
ignoring backslash while executing command
Hi, I'm running into following issue, my_file is a collection of windows directories (i.e \\path\directory\file) . I need to be able to execute "my command" as
my command \\path\directory\file I know that while read -r / print -r ignores backslashes. My code: cat $my_file | while read -r line do my_array[$i]=$line (( i = i + 1 )) myarray[i]=$line done (( h = 0 )) while (( h < `cat $my_file | wc -l )) do my command ${my_array[h]} this executes incorrect values print -r "my command ${my_array[h]}" this sends correct output to the screen (( h = h + 1 )) done Appreciate any help. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|