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 unix command to make a new directory?
What is the use of awk command in unix?
Differentiate cat command from more command.
Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be highly appreciated...
How to check whether some services are running in another server or not? Suppose i am currently in a server named A.I want to check whether some services are running in server B without logging into the server B.
3 Answers Amazon, MBA, Syntel, TCS, Unisys,
What is the unix command to confirm a remote host is alive or not?
What are file commands?
What is the use of pipes?
What is grep short for?
What Command is used to make a directory?
Name the various commands that are used for the user information in unix.
How do you execute a UNIX command in the background?