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
Is shell scripting useful?
What happens when you type ls?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
Explain about "s" permission bit in a file?
How to open a read-only file in the shell?
How will you emulate wc –l using awk?
What language is bash?
Why do we write bin bash in shell scripts?
How to calculate the number of passed arguments?
Why is a script important?
What is c in shell script?
Can shell script run on windows?
What language is shell scripting?
What are zombie processes?
Explain about return code?