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

Q1: ls | grep "^\-"

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do chmod, chown, chgrp commands do?

650


Which command is used to copy files?

568


What is nr in awk command?

619


Why is it called grep?

569


How can we use grep command in unix?

623






How do I find previous commands in unix?

605


What is rmdir command?

561


Explain mount and unmount command.

627


Which command should you use to find the remaining disk space in unix server?

720


What is the comma to show the space allocation of files?

564


What is grep command in unix with examples?

616


What is a bash command?

633


How do you repeat a command in terminal?

602


What is the difference between grep and grep?

577


What difference between cmp and diff commands?

734