Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to handle the delimiter unit seperator in Unix

Answer Posted / srikanth

create script test.txt with | seperated

The below commands can be used to get the fields values:

awk -F"|" '{print $1}' test.txt

cat sri.txt | cut -d"|" -f1

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of echo in shell script?

1011


What is a program shell?

1049


State the advantages of shell scripting?

1052


how will you find the total disk space used by a specific user?

1051


How do I read a .sh file?

1109


Explain about the slow execution speed of shells?

1232


What is the default ubuntu terminal?

1130


What is the way to do multilevel if-else's in shell scripting?

1301


What is a shell script? Can you name some of its advantages?

1063


How can we find the process name from its process id?

1180


What is wc in shell script?

990


Explain about "s" permission bit in a file?

1060


What are the different variables present in linux shell?

1110


What does echo $0 do?

982


Write a command sequence to find the count of each word?

994