[TriLUG] Need some help parsing a file
R Radford
rradford at mindspring.com
Mon Dec 30 19:01:30 EST 2013
I am late to the party, but did read each of the examples. In addition to
cut being a very simple and elegant solution to the problem, the author of
that solution also avoided using cat to read in the file and saved another
process and a pipe.
For example:
cut -c40- < filename.txt
is better than:
cat filename.txt | cut -c40-
The same could be done to each of the examples above.
On Mon, Dec 30, 2013 at 3:25 PM, Brian Blater <brb.lists at gmail.com> wrote:
> Thank you for everyone's suggestions. It is awesome the amount of knowledge
> out there and the willingness to share/help.
>
> As was mentioned, cut in this instance was the easiest and fastest for me
> to just get the task done. Other tools may be more powerful, but I find it
> hard to understand REGEX and it just doesn't stick in this old mind.
>
> I did learn a lot from this exchange and hope to keep the knowledge
> accessible in the brain (if not, I'm keeping this e-mail in archive :))
>
> Thanks,
> Brian
> --
> This message was sent to: Rodney Radford <rradford at mindspring.com>
> To unsubscribe, send a blank message to trilug-leave at trilug.org from that
> address.
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web :
> http://www.trilug.org/mailman/options/trilug/rradford%40mindspring.com
> Welcome to TriLUG: http://trilug.org/welcome
>
More information about the TriLUG
mailing list