[TriLUG] Need some help parsing a file
William Sutton
william at trilug.org
Sun Dec 29 22:48:18 EST 2013
still relies on file listings starting in column 40. You really want
awk+sed for this sort of thing, but I never learned awk. So...
cat filename.txt |perl -pe "s/^.+[\d,]+\s+//"
:-)
William Sutton
On Sun, 29 Dec 2013, Peter Neilson wrote:
> On Sun, 29 Dec 2013 21:13:17 -0500, Dewey Hylton <plug at hyltown.com> wrote:
>
>> try this:
>>
>> cut -c40- < filename.txt
>
> Doesn't use sed, but it's better than mine.
> --
> This message was sent to: William <william at trilug.org>
> 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/william%40trilug.org
> Welcome to TriLUG: http://trilug.org/welcome
More information about the TriLUG
mailing list