0
votes
2answers
369 views

command line tool to extract a token out of stdin stream?

I've been using this perl script to get a token out of stream on command line 1 #!/usr/bin/perl 2 3 $i = $ARGV[0]; 4 5 while (<STDIN>) { 6 @tokens = split /\s+/; 7 print ...