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 difference between scripting and coding?
What exactly is a shell?
What is path in shell script?
What is awk in shell scripting?
How to find all the files modified in less than 3 days and save the record in a text file?
Is shell scripting difficult?
What is the first line in every perl script called?
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.
What is a scripting language simple definition?
Is scripting and coding the same thing?
What is shell variable?
How do you create a shortcut in linux?
What is the difference between grep and egrep?
How to get the first line from a file using just the terminal?
What are the different commands available to check the disk usage?