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


Please Help Members By Posting Answers For Below Questions

What is the behavioural difference between cmp and diff commands?

672


What is the use of find command in unix?

577


What is used to type command?

539


Describe the usage and functionality of the command rm –r * in unix?

820


What is grep in bash?

585






What is grep command in unix with examples?

604


What is the first character of the output in ls l command?

630


What is .sh file?

614


how to sort the content of the file based on numeric values

1250


What does this command do? Cat food 1 > kitty

974


What is pipe command in unix?

669


What is the difference between cat command and more command?

599


What is the command to view process running?

573


Can you explain a little bit about command substitution?

607


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

687