![]() |
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 |
| BASH quoting behavior | na5m | Shell Programming and Scripting | 5 | 12-30-2008 02:31 PM |
| Quoting problem with `date` | cleansing_flame | Shell Programming and Scripting | 3 | 02-22-2008 03:26 PM |
| *.pm globs without quoting, *.pl doesn't. | tphyahoo | Shell Programming and Scripting | 2 | 06-02-2006 11:37 AM |
| Quoting of special characters | vibhor_agarwali | UNIX for Dummies Questions & Answers | 1 | 01-30-2005 04:58 AM |
| Wildcards and quoting | Bab00shka | UNIX for Dummies Questions & Answers | 2 | 09-16-2002 10:16 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
quoting question
hi guys, i have a question related to quoting but i am not sure how to formulate it...
lets say we want to simulate the following shell actions Code:
cd ~/project-dir ctags /home/work/folder1/*.sh /home/work/folder2/*.sh /home/work/folder3/*.sh buidtags.sh Code:
directory="~/project-dir" file_locations="/home/work/folder1/*.sh /home/work/folder2/*.sh /home/work/folder3/*.sh" ctags_command=ctags "$file_locations" (cd "$directory" && $ctags_command ) i think the reason is that it skips file globbing, and considers *.sh to be a file, that (of course) can't be found! How can i make file globbing and double quotes coexist? in other words how can i make this example work? thanks in advance for your time, nicolas PS: in quoting as a reference i use chap7 from "learning the bash shell 3rd edition" but i am relatively new to shell scripting.Is there any other good reference for bash? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|