Mahendra's blog
Thursday, August 11, 2011
shell scripting - IFS newline [\n] not working
When you try to set IFS as a newline character, It just interprets "\n" as "n". After trying for while I found out that, It works fine if IFS is set as
IFS=$'\n'
.
cheers !!!!
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment