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

How does pipe () work?

602


Is ‘du’ a command? If so, what is its use?

643


Which command will print your home directory on screen?

561


What is the functionality of a top command?

628


What does the command '$ls | wc –l > file1' do?

690






How do I search for a file in unix command?

559


What is the use of tee command?

580


Can you enlist some commonly used network commands?

610


What do chmod, chown, chgrp commands do?

650


What is the function of grep command in unix?

607


What is the search command in unix?

614


What is in grep command?

654


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

806


What does #!/ Bin sh do?

602


What do chmod command do?

610