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 / vamshi

1,$ s/^/-/g

2. 1,$ s/$/P/g

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are you in or at the office?

626


what is the advaantage of each user having its own copy of the shell?

2047


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

594


What is the first character of the output in ls l command?

643


What is unix command line?

624






What is the command to find maximum memory taking process on the server?

680


What is in grep command?

654


Is it inbetween or in between?

592


What is the comma to display different lines that are found when compare two files?

601


How do I run a bash script?

590


Which command is used to restrict incoming messages?

598


What happens when we execute a unix command?

608


What are the general commands in using unix os for a beginner?

585


What is used to type command?

557


How do you grep a case insensitive?

552