LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 11: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-03-2015, 12:14 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,930

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
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-03-2015 at 12:16 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:40 AM
Error information when booting: cann't find /usr/ bingmou Debian 12 09-26-2011 09:40 PM
cann't find g_set_error_literal wufo Slackware 1 02-03-2009 10:50 AM
Cann't install windows system dreambird Linux - Software 4 12-01-2006 11:38 AM
setting IFS variable infamous41md Linux - Newbie 2 05-20-2003 07:12 PM


All times are GMT -5. The time now is 03:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration