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 calculate the number of passed arguments?
What is the syntax of "nested if statement" in shell scripting?
What is $1 in shell scripting?
How to redirect both standard output and standard error to the same location?
How will you copy a file from one machine to other?
How do I open the shell in cmd?
What is bash eval?
What is a shell made of?
How do we create command aliases in a shell?
What is web script?
Explain about non-login shell files?
I want to connect to a remote server and execute some commands, how can I achieve this?
How do I start a shell script?
What are the various stages of a linux process it passes through?
How does path variable work?