Write a shell script in Linux to shift all characters in a
file forward by five characters. (Thus “a”
becomes “f’”).
Answers were Sorted based on User's Feedback
Answer / manuswami
cat test.txt | tr '[a-z A-Z]' '[f-za-e F-ZA-E]'
Is This Answer Correct ? | 41 Yes | 6 No |
Answer / dibya jyoti singha
cat abc.txt | tr '[a-z A-Z]' '[f-za-e F-ZA-E]' > xyz.txt
Is This Answer Correct ? | 2 Yes | 1 No |
What is bash coding?
What language is bash?
What are the different kinds of loops available in shell script?
What is the significance of the shebang line in shell scripting?
Given a file find the count of lines containing the word "abc".
How to pass an argument to a script?
What is sh in shell script?
What are the two files of crontab command?
How do I open the shell prompt?
How to customise the other shell?
What is shell terminal?
Is shell scripting useful?