Friend: You will rock Abhilasha. Just go through these basic interview commands. And you will crack it.
Friend: Yes of course.
THE WORRIED FRIEND

What is Cut Command?
As the name, suggest cut command is used to cut sections of text or a portion of text from a file or section of character from the lines written in the given file.
For example: Create a file name: Winner.txt
A file in linux can be created in two ways –

cut -c 2 winner.txt
Output would be :
e

2. Extract the fifth character :
Output :

Please note that now for the first line blank space would be printed as character 5.
cut -c 8,9 winner.txt

4. Print a range of characters you can do this like :
cut -c2-7 Winner.txt
Output :
e posi

5.Print characters from some specific position.
cut -c 3- winner.txt
Output :
rk hard to achieve your Goals.
you want to achieve something, have focus on it.
positive and love your life.


Leave a comment