Category: UNIX INTERVIEW QUESTIONS
Problem Statement: Student details are stored in the following format: “Roll no,Name,Scorel,Score2” Write Unix command to display the roll no and the name of all the students whose total …
In this way we can use the cat command to concatenate the files and write them into another file. We can use rev command to reverse the word. …
Cat command is one of the basic commands that you learn when you start your journey in the Unix / Linux world. You already know that cat displays a …
No difference is there, both commands gives the same result. If we copy the file, modified time will be changed. If we move the file there will be no …
The simplest and common way to do this would be by using the command: where $LOGFILE is an environment variable corresponding to the path to the log file to …
Below sed used to remove special characters from file. $ cat emp_new.txt Michael,10#$ Bob,20^& Smith,30@! Will,20() Joe,$30+_ $ sed -e ‘s///g’ emp_new.txt Michael,10 Bob,20 Smith,30 Will,20 Joe,30 …
If we want to know what is wget command and its syntax then you can read our previous post. Read: wget command in unix In this post, we will …
Or Read also: Unix interview questions and answers part – 1 The basename command deletes any prefix ending in ‘/’. This will display only file name. Or Read also: …