Find knowledge base article(s) by searching for keywords in the title e.g. type linux in the search box below
Find knowledge base article(s) by browsing the subject categories of articles
Technology quick references, cheatsheets, user manuals etc.
Shop Online through ShopifyLite
Tutorials on various IT applications.
Search Title    (UL:0 |SS:f)

Software >> OS >> Unix >> Shell >> Examples >> Reading input

1,  To read user input with specific Input Field Separator .  eg to read IP address one octet at a time

IFS=".";read i1 i2 i3 i4;echo i1=$i1, i2=$i2, i3=$i3, i4=$i4

 

 

[ © 2008-2021 myfaqbase.com - A property of WPDC Consulting ]