help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Easy for Some


From: Colin S. Miller
Subject: Re: Easy for Some
Date: Tue, 05 Jan 2010 21:54:55 +0000
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706)

marioepsley wrote:
I'm not coder but i needed to extract some information from a text file and
some one pointed me in this direction.
I have a file like this, could have up to a 1000 keyframes.:



Effects   Sound Keys #1   Output 1 #22
   Frame
   0   0.17489
   1   0.261281
   2   0.361762
   3   0.400085
   4   0.411538
   5   0.434799
   6   0.41712
   7   0.422151
   8   0.43181
   9   0.411811

Mario,

Or, skipping emacs all together, use AWK

awk -F \\t '{print $2}' < input.txt | tr -d ' ' > output.txt

This AWK command sets the field delimiter to TAB (aka \\t),
and prints the second field from each line in the file.
The tr command deletes all spaces from its input.

If you use MS-Windows, only use one \

HTH,
Colin S. Miller


reply via email to

[Prev in Thread] Current Thread [Next in Thread]