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 / shaishaw
how will you display a file whose name is starting with '- '
$ find / -type f -name "-*" -print 2>null
/home/staff/thaler/-
/home/staff/thaler/-FF
/home/patron/polly/-n
/home/member/plucky/-w
/home/nijwala/bsn/-a.out
/home/mvpbhat/-foo
/home/mvpbhat/-l
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Describe the zip/unzip command using gzip.
What is the general format of unix command syntax?
What is the command to find hidden files in the current directory?
What does find command return in unix?
Explain how to use grep command to list find the records of a file containing 10 different strings?
What do chmod, chown, chgrp commands do?
What is the use of cut command in unix?
Who command in unix operating system?
What are the unix commands?
How do I open a port?
What is ‘ps’ command for?
What is used to type command?
What is the use of sed command in unix?
how to sort the content of the file based on numeric values
What is unix command?