Sara has asked for the wisdom of the Perl Monks concerning the following question:
I want to know the "someName" and set it to a value.ngbb/someName/bld/one.txt ngbb/someName/bld/two.txt
system("find /clear/pp_00/ngbb/ -name '*.txt' > CCfiles"); open (OUT , "CCfiles" ) or die " can't open CCfiles\n"; while (<OUT>) { $_ =~ m/^//\w+////; print "the someName dir is $_\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: path greping
by talexb (Chancellor) on Aug 29, 2002 at 21:19 UTC | |
by grep (Monsignor) on Aug 30, 2002 at 03:38 UTC | |
|
Re: path greping
by ryddler (Monk) on Aug 29, 2002 at 22:10 UTC | |
by Arien (Pilgrim) on Aug 29, 2002 at 22:35 UTC |