If that's not what you want, you will need to do a better job of describing your requirements. The code above is untested.#!/usr/bin/perl use strict; use warnings; my $file = $ARGV[0] or die "Usage: $0 <input_file>"; open(my $fh, '<', $file) or die "Unable to open '$file' for reading: $ +!"; while (<$fh>) { next if /^(?:\s|[:cntrl:])/ || /^$/; s/^\S+\s//; print; }
Cheers - L~R
In reply to Re: Text Extraction
by Limbic~Region
in thread Text Extraction
by sonicscott9041
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |