S
semenaa
Guest
The script's purpouse is to read input from some device and apply a filter on it.
This pipe doesn't work as it I thought it should:
# netcat 172.17.1.65 33001 | grep "@" | cut -f9 | perl -wnE '$w+=scalar(0);print "$w $_"'
these constructions show output but do not write to files (why?):
# netcat 172.17.1.65 33001 | grep "@"
# netcat 172.17.1.65 33001 | cut -f9
# netcat 172.17.1.65 33001 | perl -wnE '$w+=scalar(0);print "$w $_"'
What's wrong? Hasn't found anything in man/info pages. It seems like I use it somehow wrong.
This pipe doesn't work as it I thought it should:
# netcat 172.17.1.65 33001 | grep "@" | cut -f9 | perl -wnE '$w+=scalar(0);print "$w $_"'
these constructions show output but do not write to files (why?):
# netcat 172.17.1.65 33001 | grep "@"
# netcat 172.17.1.65 33001 | cut -f9
# netcat 172.17.1.65 33001 | perl -wnE '$w+=scalar(0);print "$w $_"'
What's wrong? Hasn't found anything in man/info pages. It seems like I use it somehow wrong.