The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 05-16-2008
srikanthg srikanthg is offline
Registered User
  
 

Join Date: May 2008
Posts: 16
what is -n1 heere in this syntax

could u explain what is "-n1" here in this syntax

Quote:
Originally Posted by LivinFree View Post
What shell? Bash has the `read` builtin where you can do:
Code:
while read -n1 char; do
 #do something with the byte in $char
done <input.file