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
How do I set bash as default shell mac?
Explain about sourcing commands?
What language is shell scripting?
Print the 10th line without using tail and head command.
What are the disadvantages of shell scripting?
How will you copy a file from one machine to other?
Why is the use of shell script?
What are the types of script?
What is the first line in every perl script called?
What is inside a seashell?
Why is a script important?
What is an inode block?
What is scripting used for?
What is computer cli?
What is the syntax of "nested if statement" in shell scripting?