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
What is the use of echo in shell script?
What is a program shell?
State the advantages of shell scripting?
how will you find the total disk space used by a specific user?
How do I read a .sh file?
Explain about the slow execution speed of shells?
What is the default ubuntu terminal?
What is the way to do multilevel if-else's in shell scripting?
What is a shell script? Can you name some of its advantages?
How can we find the process name from its process id?
What is wc in shell script?
Explain about "s" permission bit in a file?
What are the different variables present in linux shell?
What does echo $0 do?
Write a command sequence to find the count of each word?