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 command is used to copy files?
How do you know about running processes of a particular user?
what is the difference between npar and vpar in HP-UX?
how unix kernel distinguishes between a normal file and device file ?
7 Answers Google, IBM, McAfee, Vodafone,
How to view the hidden files in /etc directory?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What do chgrp command do?
What is the difference between cat and more command?
Give the command for finding the current date.
Who command in unix?
distinguish between interrupts and exceptions?
why unix operating system provides more security than other operating systems?