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 / suresh raju

sed 's/.\{1,75\}/xyz/g' filename

here n=75. so 75 characters will be replaced with xyz

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I run a bin bash script?

998


What is a file basename?

1014


What is the lifespan of a variable inside a shell script?

1597


What is web script?

1056


What does sh mean?

1022


How do I run a .sh file on mac?

1113


Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.

1249


What is shell and shell script?

1090


How will you connect to a database server from linux?

1006


What does $0 mean in shell script?

956


What is the best shell scripting language?

976


Explain about shebang?

1010


How can I send a mail with a compressed file as an attachment?

1013


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

2302


What are the various stages of a linux process it passes through?

1128