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

How do I set bash as default shell mac?

944


Explain about sourcing commands?

1032


What language is shell scripting?

971


Print the 10th line without using tail and head command.

2110


What are the disadvantages of shell scripting?

1121


How will you copy a file from one machine to other?

944


Why is the use of shell script?

934


What are the types of script?

1089


What is the first line in every perl script called?

976


What is inside a seashell?

1070


Why is a script important?

985


What is an inode block?

996


What is scripting used for?

991


What is computer cli?

840


What is the syntax of "nested if statement" in shell scripting?

1039