in reply to printing during process
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"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: printing during process
by Anonymous Monk on Apr 05, 2012 at 07:07 UTC | |
by stevieb (Canon) on Apr 05, 2012 at 07:25 UTC | |
by Anonymous Monk on Apr 05, 2012 at 08:27 UTC | |
by Happy-the-monk (Canon) on Apr 05, 2012 at 08:42 UTC | |
by Anonymous Monk on Apr 05, 2012 at 08:28 UTC | |
by ww (Archbishop) on Apr 05, 2012 at 11:58 UTC | |
by stevieb (Canon) on Apr 05, 2012 at 12:59 UTC |