Answer Posted / swaroopa
cut is used to get a specific data from a file. Supppose
you want to get a data in a file from column 10 to 20, you
can get it by using cut
eg: cat filename.txt | cut -c 10-20
eg: cut -c10-20 <filename.txt>
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Print the 10th line without using tail and head command.
How do you find out What is your shell?
What is the difference between grep and egrep?
What is difference between shell and bash scripting?
What is sudo command?
Explain about echo command?
What is inside a seashell?
what is tickets $ what low,medium,high priorite pls define time also
Is shell scripting a programming language?
write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.
How to get the first line from a file using just the terminal?
What is the syntax of "nested if statement" in shell scripting?
what is info area how many types?
What is shell terminal?
How to find duplicate record in file using shell script?