let's say you have a listing like this in a file name list.txt:
aaa bbb
aaa bbb
aaa bbb
aaa bbb
aaa bbb
if you wanna print the "bbb" column, you just have to do like this:
cat list.txt | awk '{ print $2 }'
if the listing is like this:
aaa;bbb
aaa;bbb
aaa;bbb
aaa;bbb
aaa;bbb
then you do:
cat list.txt | awk -F';' '{ print $2 }'
and so on. I sugest you read awk and gawk man pages for more info.
they are very complete.
regards, claudio.
On 3/24/06, Sascha Lucas <[EMAIL PROTECTED]> wrote:
> Hi list,
>
> I want the awk analogon for "cut -f2-", which prints fields #2 to #n. Is
> this possible?
>
> awk '{print $2???}'
>
> TIA,
>
> Sascha.
>
> --
> [email protected] mailing list
>
>
--
[email protected] mailing list