1-how will you display a file whose name is starting with '-
'?
2-how will you add a patten at end of every line in vi
editor?

Answer Posted / dibya lochan giri

ans of Q2-using cmd :1,$ s/$/pattern name/
or %s/$/pattern name/g

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between grep and grep?

563


What is the use of find command in unix?

577


What is the difference between awk and grep?

557


What is the unix command to confirm a remote host is alive or not?

579


What are file commands?

650






What does 'mkdir' command do in UNIX?

660


What command is used to switching between users in unix?

560


How do I search for a file in unix command?

546


How do I run a bash script?

580


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

796


Are you in or at the office?

609


What is command statement?

541


What is the use of tee command?

567


What is in grep command?

645


What does the “echo” command do?

624