Hello all. I have tried to do something simple. Do ls, pipe it to perl -ne (using xargs) and print. And it runs indefintely. I have tried something simple, like printing out only the directories. See code below
ls | xargs perl -ne ' map { print $_ , "\n" if ( -d $_ ) ; } @ARGV 'This runs almost indefintely. However this gets me what I need:
ls | xargs perl -ne ' $a = shift ; print $a "\n" if (-d $a) ; 'why?
In reply to ls piped tpo perl -pe runs indefintely by ISAI student
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |