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
What can scripts do?
How do I run a script on mac?
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.
What is shell prompt?
Why should we use shell scripts?
Explain how you Automate your application using Shell scripting.
How to find all the files modified in less than 3 days and save the record in a text file?
What is echo $shell?
Why is it called a shell?
How does shell scripting work?
Is scripting and coding the same thing?
c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command
What is the difference between grep and egrep?
What is the meaning of $1 in shell script?
How to pass an argument to a script?