copy and paste this google map to your website or blog!
Press copy button and paste into your blog or website.
(Please switch to 'HTML' mode when posting into your blog. Examples: WordPress Example, Blogger Example)
shell - Understanding IFS - Unix Linux Stack Exchange The following few threads on this site and StackOverflow were helpful for understanding how IFS works: What is IFS in context of for looping? How to loop over the lines of a file Bash, read line by
Understanding IFS= read -r line - Unix Linux Stack Exchange Using IFS= LC_ALL=C read -r line works around it there Using var=value cmd syntax makes sure IFS LC_ALL are only set differently for the duration of that cmd command History note The read builtin was introduced by the Bourne shell and was already to read words, not lines There are a few important differences with modern POSIX shells
understanding the default value of IFS - Unix Linux Stack Exchange Here if the expansion contains any IFS characters, then it split into different 'words' before the command is processed Effectively this means that these characters split the substituted text into different arguments (including the name of the command if the variable is specified first)
How to temporarily save and restore the IFS variable properly? How do I correctly run a few commands with an altered value of the IFS variable (to change the way field splitting works and how quot;$* quot; is handled), and then restore the original value of I
splitting a line into array in bash with tab as delimiter If you have empty columns, cut -d$'\t' and IFS=$'\t' have different behaviour with regard to them Cut will treat each individual tab as a distinct separator, while read will take consecutive tabs as just a single separator That is, the string foo<tab><tab>bar will be read as just two columns by read, but three columns by cut