Skip to content
How to replace the word “Gun” with “Pen” in the first 100 lines of a file?
sed ‘1,00 s/Gun/Pen/’ < filename
UNIX Interview Questions
Write a command to print the fields from 10th to the end of the line. The fields in the line are del...
How to remove all the occurrences of the word “jhon” except the first one in a line with...
Write a Unix command to display the lines in a file that do not contain the word “RAM”?
Write a command to find the length of a line in a file?
How to get the last word from a line in Unix file?
TERMS AND CONDITIONS