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

Can you write a script to portray how set –x works?

985


What is the use of .sh file?

1100


How to print pid of the current shell?

981


What is the purpose of scripting?

1059


What are types of shells?

1011


What are script files?

1013


How do I set bash as default shell mac?

984


Why is used in shell scripting?

978


is this growing field and what is average package in this?

2288


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

1037


How many fields are present in a crontab file and what does each field specify?

1100


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

982


How can you find out how long the system has been running?

890


What exactly is a shell?

1058


How to write a function?

1017