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 and terminal the same?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
How do I debug a shell script?
How do we create command aliases in a shell?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
What will happen to my current process when I execute a command using exec?
What is a shell script? Can you name some of its advantages?
What is bash coding?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
What is the use of break command?
What is a program shell?
What is shell scripting used for?
Explain about "s" permission bit in a file?
What is gui scripting?
Is powershell a bash?