About 482,000 results
Open links in new tab
  1. What is the meaning of IFS=$'\\n' in bash scripting?

    Feb 15, 2015 · At the beginning of a bash shell script is the following line: IFS=$'\\n' What is the meaning behind this collection of symbols?

  2. 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 …

  3. Understanding "IFS= read -r line" - Unix & Linux Stack Exchange

    Jun 12, 2015 · 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. …

  4. What is the "IFS" variable? - Unix & Linux Stack Exchange

    Feb 20, 2023 · I was reading this Q&A: How to loop over the lines of a file? What is the IFS variable? And what is its usage in the context of for-loops?

  5. bash - Use of IFS in “for loop” - Unix & Linux Stack Exchange

    Jun 6, 2019 · Use of IFS in “for loop” Ask Question Asked 6 years, 5 months ago Modified 6 years, 5 months ago

  6. changing IFS temporarily before a for loop [duplicate]

    Aug 16, 2020 · changing IFS temporarily before a for loop [duplicate] Ask Question Asked 5 years, 2 months ago Modified 4 years, 8 months ago

  7. bash - Can IFS (Internal Field Separator) function as a single ...

    Parsing an array using IFS with non-whites space values creates empty elements. Even using tr -s to shrink multiple delims to a single delim isn't enough. An example may explain the issue …

  8. How to temporarily save and restore the IFS variable properly?

    Mar 19, 2021 · 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 "$*" is handled), and then restore …

  9. Why is `while IFS= read` used so often, instead of `IFS=; while read..`?

    The IFS= read -r line sets the environment variable IFS (to an empty value) specifically for the execution of read. This is an instance of the general simple command syntax: a (possibly …

  10. bash - IFS not working - Unix & Linux Stack Exchange

    Jun 26, 2020 · IFS not working Ask Question Asked 5 years, 4 months ago Modified 5 years, 4 months ago