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
Is shell scripting useful?
How does ls command work?
How to find all the files modified in less than 3 days and save the record in a text file?
How can you get the value of pi till a 100 decimal places?
How do I save a powershell script?
determine the output of the following command: echo ${new:-variable}
Explore about environment variables?
How to print the first array element?
How do I run a .sh file?
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
What is the significance of $#?
What is difference between bash and shell?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
How do I open a jshell in cmd?
What does $1 mean in bash?