Answer Posted / seshadri sethi
Cut - Utility used to cut/Strip out the required data/text
from the source.
Cut can be used in three modes,
Stripping by Character
cut -c 1-3
Striping by Byte length
cut -b -1-72
Stripping by delimiter and fields.
cut -d “|” -f1
Where
-d “|” -> Delimiter used in input text to separate columns
-f1 -> Field/Column number
While processing huge input files, Cut’s performance is far
better than awk
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What are filters explain sort with all the options available?
How to get script name inside a script?
What will happen to my current process when I execute a command using exec?
What does egrep mean?
What does path stand for?
Is shell scripting difficult?
What is a shell made of?
What does $@ mean in shell?
What does it mean to debug a script?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
What is c in shell script?
What is the difference between scripting and coding?
What is shell scripting used for?
What does the sh command do?
What shell is bin sh?