It is currently Tue, 30 Nov 2021 17:32:38 GMT

Author Message
 File name expansion in csh
A recent project required a count of a recurring string in several files
in different directories.  The project has been completed, but I still
haven't figured out how to get file name expansion to work using frep
under csh. Any ideas how to quote the following so that it will properly
expand in a csh script?:

    foreach ...
     if (-d $i) then
        grep -c ddd $i/*.grp
    ...                ^

Thanks in advance - no ksh, sh, name-your-favorite, isn't an option :-)

 Fri, 15 May 1998 03:00:00 GMT   
   [ 1 post ] 

Similar Threads

1. wierd csh ~ file expansion problems

2. FIle name expansion problems

3. file name pattern expansion in Korn shell (88)

4. File name expansion in script vs. command line

5. File name completion in csh?

6. csh source and getting file name

7. script for changing file names (csh or bash)

8. Question on order of filename expansion of {a,b}/{c,d} in bash (or csh)

9. Double expansion in csh

10. wildcard expansion and symbolic links (csh, sh, ksh, bash)

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software