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 you do with powershell?
What is the first line in a shell script?
How do I open the shell in cmd?
What is a shell environment?
What is console line?
What does $0 mean in shell script?
How can you get the value of pi till a 100 decimal places?
What is a shell script in windows?
How many fields are present in a crontab file and what does each field specify?
How can I set the default rwx permission to all users on every file which is created in the current shell?
What is shell geeksforgeeks?
How do I run a shell script in powershell?
What can scripts do?
How do you create a shortcut in linux?
What is shell terminal?