Learn how to automate common tasks using bash shell scripting
While with IFS: IFS: Internal Field Separator, which is one of the shell or environment variable. The IFS variable is used as a word separator (token) for the loops. If we are going to change the default IFS, then it is a good practice to store the original IFS in a variable.
While syntax with IFS:
Learn how to automate common tasks using bash shell scripting