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 are the general commands in using unix os for a beginner?
What is $0 bash?
What is the use of the command 'ls -x chapter[1-5]' ?
How does a user get the current date, time in UNIX?
write grep commands to select the lines that have exactly two characters
what is the difference between KILL and KILL -9?
5 Answers Informatica, Nutanix,
What is the nmap command?
Give Command that will move a single file called "unix.txt"
what do you understand by 'unix is a portable os'?
distinguish between paging and swapping?
What do know about tee command and its usage?
How do you copy a directory with many files and folders into another directory?