Thread system ` cat test.txt | grep name` (4 answers)
Opened by thomas at 2009-03-22 21:10

Gast thomas
 2009-03-22 21:10
#119696 #119696
Hallo,
ich möchte in $a meine anzahl der lines speichern.

my $a = system ` cat test.txt | wc -l`

wie kann ich die Pipe "|" mit überegeben?


Fehlermeldung: "syntax error at -e line 1, near "wc -l "

danke!

View full thread system ` cat test.txt | grep name`