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
How to find all the files modified in less than 3 days and save the record in a text file?
How would you compare the strings in a shell script?
What is a program shell?
What is .sh file in mac?
wats the deinitions for shell utility and filter?
How do you know which shell I am using?
Which is better perl or shell scripting?
Is shell scripting a language?
What is a shell made of?
How can we find the process name from its process id?
Is shell scripting difficult?
How do I run a script from command prompt?
What is bash command used for?
What does $0 mean in shell script?
What are different types of shell?