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 are reported commands?

825


What does this command do,"$more readme.txt“?

893


What is a bash command?

850


What are awk commands?

824


What do chgrp command do?

854


What are the commands in UNIX to list the files in a Directory?

838


Describe the zip/unzip command using gzip.

847


What is time_t?

799


What is the use of the tee command?

838


What command is used to switching between users in unix?

785


Who wrote grep?

783


How do I search for text in vi?

780


What is s and g in sed command?

814


What is the use of the command 'ls -x chapter[1-5]' ?

914


How can we use grep command in unix?

864