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...

How would you replace the n character in a file with some
xyz?

Answer Posted / ram

* sed 's/n/xyz/g' filename > new_filename
s -search and replace
n -character to be replaced
xyz - character to replace
g -global

* vi filename
:%s/n/xyz/g --search and replace
:w! ---save

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What language is used in terminal?

971


How do I run a .sh file?

1001


What is a beat in a script?

1050


What is the difference between bash and shell?

1099


How to print all the arguments provided to the script?

942


What is the conditional statement in shell scripting?

1215


What does the sh command do?

1067


What is path variable bash?

1025


How do I run a shell script in powershell?

1103


What is shell scripting used for?

978


What are the 3 standard streams in linux?

1118


Explain about login shell?

1104


Explain about the slow execution speed of shells?

1204


What is batch file programming?

1146


Write a script to print the first 10 elements of fibonacci series.

2327