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 |
how to check a file system type
What is the difference between Shell Programming and Shell scripting?
10 Answers HCL, TCS, Wipro,
What is grep short for?
How do you find out all processes that are currently running in UNIX OS?
What is the use of find command in unix?
What is the syntax of grep command and what is its use?
distinguish between interrupts and exceptions?
How to check the flavor of UNIX?
what is the difference between npar and vpar in HP-UX?
Why is grep called grep?
distinguish between multi-tasking,multi-user,multi- processing and time sharing?
7 Answers Alcatel, Cisco, Infosys, University Exams,
What are the dos commands?