It's hard to tell exactly what you mean when you refer to "shell command", particularly because you don't show us anything you've tried, but here's a simple Perl snippet that shows how to do what you want.
#!/usr/bin/perl use strict; use warnings; open my $fh, '<', 'file.txt' or die "Can't open file: $!"; while ( my $line = <$fh> ){ chomp $line; # do stuff print "$line\n"; }
In reply to Re: printing during process
by stevieb
in thread printing during process
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |