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

Please give me example of " at command , contrab command " how to use

2722


How can we find the process name from its process id?

1127


What does $1 mean in bash?

1028


What is an inode block?

1000


how to get part of string variable with echo command only?

975


What is option in shell script?

959


How to get script name inside a script?

965


What is a file basename?

996


Calculate a real number calculation directly from the terminal and not any shell script.

1152


What are the different types of shell scripting?

1033


What is wc in shell script?

936


What is basename in shell script?

1011


Which scripting language is best for automation?

893


What does .sh file contain?

905


What is shell application?

947