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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
What is the command to view process running?
What Command is used to make a directory?
what are processor execution levels and priorities?
What does this command do? Cat food 1 > kitty
in UNIX ,What is the command to view contents of a large error log file?
How we will execute previous command in vi editor?
What do chmod command do?
What does sed command do in unix?
How do I search for a file in unix command?
Will rm -r* removes hidden files?
What is an Unix command to convert HEX value to ASCII value located in any flat file.
Assume that a file’s permissions give you read and write access. What operations can you perform on the file if it is in a directory which has “r”(read) only process? What operations can you perform on the file if it is in a directory which has “x”(execute) only access?