in reply to ls piped tpo perl -pe runs indefintely
neither you need ls:ls | perl -nE'chomp; say $_ if -d $_'
perl -E'for (<*>) {say $_ if -d $_}'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: ls piped tpo perl -pe runs indefintely
by ISAI student (Scribe) on May 01, 2012 at 16:26 UTC | |
|
Re^2: ls piped tpo perl -pe runs indefintely
by Anonymous Monk on May 01, 2012 at 16:30 UTC |