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 pass an argument to a script?
How to write a function?
I have 2 files and I want to print the records which are common to both.
What does it mean to debug a script?
What are "c" and "b" permission fields of a file?
what is info area how many types?
What are script files?
How important is shell scripting?
How will you pass and access arguments to a script in linux?
What does path stand for?
Explain about stdin, stdout and stderr?
Why do we use shell scripting?
Explain how you Automate your application using Shell scripting.
How to get the 3rd element/column from each line from a file?
What is bash command used for?