Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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?

Answer Posted / vamshi

1,$ s/^/-/g

2. 1,$ s/$/P/g

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is used to type command?

1057


What do chgrp command do?

1212


What is the command to find hidden files in the current directory?

1192


How does shebang work?

1065


How do you grep recursively?

1107


What are reported commands?

1125


Explain command to view process running?

1126


What is .sh file?

1180


What is s and g in sed command?

1114


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

1312


What is the behavioural difference between cmp and diff commands?

1280


What is the first character of the output in ls l command?

1209


What is awk command used for?

1231


What does the command '$ls | wc –l > file1' do?

1231


What is the functionality of a top command?

1102