Search Results

Search: Posts Made By: manishdivs
2,787
Posted By manishdivs
For reading 1st word: temp11=$(awk '{print...
For reading 1st word:

temp11=$(awk '{print $1}' file_name.txt)
echo $temp11

OR

temp2=$(cut -d " " -f1 file_name.txt)
echo $temp2

For reading 1st character:

temp=$(cut -c 1...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 11:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy