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
Can you write a script to portray how set –x works?
What is the use of .sh file?
How to print pid of the current shell?
What is the purpose of scripting?
What are types of shells?
What are script files?
How do I set bash as default shell mac?
Why is used in shell scripting?
is this growing field and what is average package in this?
how will you find the total disk space used by a specific user?
How many fields are present in a crontab file and what does each field specify?
How will you copy a file from one machine to other?
How can you find out how long the system has been running?
What exactly is a shell?
How to write a function?