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

one folder contains lot of students name but I want to fetch hello with every student name individually using shell script

963


What is meant by $1 in shell script?

955


What is .sh file in mac?

1017


What is the crontab?

1097


What is the use of break command?

1122


What are filters explain sort with all the options available?

1354


Can you write a script to portray how set –x works?

1007


What is shell terminal?

968


What does .sh file contain?

967


Write a command sequence to find the count of each word?

999


How will you find the 99th line of a file using only tail and head command?

2542


Where are cowrie shells found?

1029


i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..

2138


Explain about login shell?

1129


What does sh mean?

1062