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
one folder contains lot of students name but I want to fetch hello with every student name individually using shell script
What is meant by $1 in shell script?
What is .sh file in mac?
What is the crontab?
What is the use of break command?
What are filters explain sort with all the options available?
Can you write a script to portray how set –x works?
What is shell terminal?
What does .sh file contain?
Write a command sequence to find the count of each word?
How will you find the 99th line of a file using only tail and head command?
Where are cowrie shells found?
i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..
Explain about login shell?
What does sh mean?