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
Why do we write bin bash in shell scripts?
How do scripts work?
Determine the output of the following command: name=shubham && echo ‘my name is $name’.
What is wc in shell script?
How will you connect to a database server from linux?
I want to connect to a remote server and execute some commands, how can I achieve this?
Can we run shell script in windows?
What is a shell made of?
How to open a read-only file in the shell?
wats the deinitions for shell utility and filter?
How do I run a script from command prompt?
I have 2 files and I want to print the records which are common to both.
How to get the first line from a file using just the terminal?
How to write a function?
How to get script name inside a script?