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 find hidden files in the current directory?
Differentiate cmp command from diff command.
How to find the files that are accessed before 10 minutes?
Does cp command overwrite files?
use of ls command
what does the 'tee' command do?
How we will execute previous command in vi editor?
which script will invoke first ,when /etc/init.d starts
what is the use of nice command?
How do you create a file in UNIX
36 Answers Accenture, EMG, Nokia, QA, TD,
What do chmod command do?
In UNIX, what is the command to edit contents of the file?