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 a beat in a script?
What is the command to find out today's date?
Explain about gui scripting?
What is inside a seashell?
What are the different variables present in linux shell?
Why is a script important?
How does ls command work?
What is shell environment?
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?
What language is used in terminal?
What does $0 mean in shell script?
What exactly is a shell?
Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.
How to get the last line from a file using just the terminal?
How to print all the arguments provided to the script?