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
How do I run a bin bash script?
What is a file basename?
What is the lifespan of a variable inside a shell script?
What is web script?
What does sh mean?
How do I run a .sh file on mac?
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.
What is shell and shell script?
How will you connect to a database server from linux?
What does $0 mean in shell script?
What is the best shell scripting language?
Explain about shebang?
How can I send a mail with a compressed file as an attachment?
Write a script to print the first 10 elements of fibonacci series.
What are the various stages of a linux process it passes through?