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

How does the system know where one command ends and another begins?

1574


Differentiate cat command from more command.

574


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

579


What are the dos commands?

644


Describe the zip/unzip command using gzip.

608






What does grep v do?

557


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

796


How many unix commands are there?

625


What is the behavioural difference between cmp and diff commands?

672


What does #!/ Bin sh do?

587


What is time_t?

584


What is grep command in unix with examples?

604


Who command in unix operating system?

660


What is merge command in unix?

942


What is the command to compare two files in unix?

618