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 Command is used to make a directory?
what is the difference between npar and vpar in HP-UX?
How does pipe () work?
How to copy multiple files and directories into some other directory?
If JFS file system is 100% full how we can increase the file system ?
What is awk used for?
What is the use of the command 'ls -x chapter[1-5]' ?
what these two commands prints "echo test","cat test"?
How do you list the files in an UNIX directory while also showing hidden files?
A file has 1000 lines and i want to display only 1st line how to do it? pls ..tel me
What is a shell in Unix? Name some common Unix shells.
What command is used to switching between users in unix?