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 give me example of " at command , contrab command " how to use
How can we find the process name from its process id?
What does $1 mean in bash?
What is an inode block?
how to get part of string variable with echo command only?
What is option in shell script?
How to get script name inside a script?
What is a file basename?
Calculate a real number calculation directly from the terminal and not any shell script.
What are the different types of shell scripting?
What is wc in shell script?
What is basename in shell script?
Which scripting language is best for automation?
What does .sh file contain?
What is shell application?