How to handle the delimiter unit seperator in Unix
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / pitambar mishra
Different types of command using delimiter :
1. cut -d "|" -f6 emp.lst
d : delimiter or field separator
2. sort -t "|" -nk6 emp.lst
t : delimiter or field separator
3. awk -F "|" '{print $6}' emp.lst
F : delimiter or field separator
Is This Answer Correct ? | 2 Yes | 0 No |
How to set an array in linux?
What are the different types of variables used in shell script?
How to group the commands in shell scripting?
How to print all array elements and their respective indexes?
how to read systems current date and time
What can you do with powershell?
What is MUTEX?
What is sed in shell script?
c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command
shell script for reverse the string
What is difference between bash and shell?
What are types of shells?