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 |
How to create hardlinks and softlinks on files?
What is the size of time_t?
How do you find which version and name of unix you are using at the command prompt?
Why is it called a shebang?
Suppose 1000 processes are running on the system out of those if you have to show only certain process ids which command will you use?
What is pipe command in unix?
What are the differences among a system call, a library function, and a unix command?
what is the use of wild cards?
How to see unused port number in Solaris?
what is the default permission for /etc/shadow file in UNIX
What is use of sed command?
12 Answers BitWise, Infosys, Reliance,
what is the use of "fg" command ?