[Top][All Lists]

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

IFS system variable

From: Eric Khanukayev
Subject: IFS system variable
Date: Thu, 14 Feb 2002 04:24:39 GMT
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1

Hello guys.
Using RH 7.1
Please help me to change value of IFS variable(I need this temporarily, just to run one program, then I will reset it back to original)
I tried:
export IFS=:

grep eric /etc/passwd |awk '{print $5}'

still not working. I'm just trying to print 5th field from /etc/passwd that will show users full name.
It counts blank space as an Internal Field Separator(IFS) but not ":"
Sun,BSD,AIX and SCO work fine. But RedHat has it's own "opinion" on this.
I tried bash and sh.
Maybe You know different way of doing this, if so please let me know.
Thanks again for Your time.


reply via email to

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