![]() |
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 |
| quoting in conditional statement | 3Gmobile | Shell Programming and Scripting | 2 | 08-14-2006 03:14 AM |
| M4 quoting drives me crazy | hindman | Shell Programming and Scripting | 0 | 05-26-2006 10:30 AM |
| Quoting of special characters | vibhor_agarwali | UNIX for Dummies Questions & Answers | 1 | 01-30-2005 04:58 AM |
| quoting echo 'it's friday' | yls177 | UNIX for Dummies Questions & Answers | 3 | 09-19-2002 11:09 PM |
| 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 |
|
|
|
||||
|
*.pm globs without quoting, *.pl doesn't.
Can someone explain the following? I can use find on *.pm without quotes, but find on *.pl makes on error, I need quotes for the second version. What's up with that?
Code:
$find -name *.pm ./tieProxyStatus/Status.pm $find -name *.pl find: paths must precede expression Usage: find [-H] [-L] [-P] [path...] [expression] $find -name '*.pl' ./persistence/dbm/persistenceFileRead.pl |
|
||||
|
Do you have any .pl files in the current directory? If so, the shell will expand '*.pl' into a list of files thus breaking the expectation of find. It may just happen that you don't have any files matching '*.pm' in your current directory so '*.pm' is passed verbatim to find. That's the expected behaviour.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|