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 |
Which unix command to make a new directory?
What does the command '$ls | wc –l > file1' do?
What is an Environment Variable?
Write a command to kill the last background job?
How can you copy files or directories?
What is an Unix command to convert HEX value to ASCII value located in any flat file.
Why is awk called awk?
what is telnet?
Give Command that will change the name of a directly from paypal to eBay
How do you create a file in UNIX
36 Answers Accenture, EMG, Nokia, QA, TD,
How to setup Disk space as well as memory in solaris10?
their is a file1,file2 and i want to append file1 data to file2?