logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

IFS Control - Manage Shell Delimiters | Online Free DevTools by Hexmos

Control shell delimiters with IFS (Internal Field Separator). Customize word splitting in shell scripts for precise data manipulation. Free online tool, no registration required.

ifs

IFS (Internal Field Separator) is a special environment variable that defines the delimiter used for word splitting in Unix shells. The default value of IFS is a space, tab, and newline. The three characters serve as delimiters. More information: https://www.gnu.org/software/bash/manual/bash.html#Word-Splitting.

  • View the current IFS value:

echo "$IFS"

  • Change the IFS value:

IFS="{{:}}"

  • Reset IFS to default:

IFS=$' \t\n'

  • Temporarily change the IFS value in a subshell:

(IFS="{{:}}"; echo "{{one:two:three}}")

See Also