LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-02-2015, 10:03 PM   #1
quitus
LQ Newbie
 
Registered: Jan 2015
Posts: 8

Rep: Reputation: Disabled
Why cann't I find IFS variable in my system


Hello, I use centos 6.5 and when I echo $IFS, I see just a blank new line. I think is should not be this, yes? Thank you very much for your help.
 
Old 01-02-2015, 11:14 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
The default value is space, tab and newline so echo $IFS will not display anything.

Try the following:
printf %q "$IFS"

Last edited by michaelk; 01-02-2015 at 11:16 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash: when an empty IFS does not work like a default IFS (info) catkin Programming 13 04-19-2012 09:40 AM
Error information when booting: cann't find /usr/ bingmou Debian 12 09-26-2011 08:40 PM
cann't find g_set_error_literal wufo Slackware 1 02-03-2009 09:50 AM
Cann't install windows system dreambird Linux - Software 4 12-01-2006 10:38 AM
setting IFS variable infamous41md Linux - Newbie 2 05-20-2003 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration