0% found this document useful (0 votes)
72 views3 pages

Bash Shell Scripting: While Loop With IFS

This document provides an overview of using while loops in bash shell scripting with a focus on the Internal Field Separator (IFS). It explains the purpose of IFS as a word separator and emphasizes the importance of storing the original IFS when making changes. The document aims to teach automation of common tasks through bash scripting.

Uploaded by

srikanth ganji
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views3 pages

Bash Shell Scripting: While Loop With IFS

This document provides an overview of using while loops in bash shell scripting with a focus on the Internal Field Separator (IFS). It explains the purpose of IFS as a word separator and emphasizes the importance of storing the original IFS when making changes. The document aims to teach automation of common tasks through bash scripting.

Uploaded by

srikanth ganji
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Bash Shell Scripting

while loop with IFS

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

You might also like