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 are the 3 standard streams in linux?

1050


What does egrep mean?

913


How to use arguments in a script?

1033


Explain how you Automate your application using Shell scripting.

2246


Explain about the exit command?

923


What is the command to find out users on the system?

918


What is @echo off?

942


What is ms powershell?

965


What is the difference between bash and shell?

1059


How do I open a jshell in cmd?

1144


how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?

4017


What are the different communication commands available in the shell?

910


How to print all array elements and their respective indexes?

900


How will you connect to a database server from linux?

988


What is an sh file?

886