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 use of "cut" command?
How do you debug a script?
What is bourne shell scripting?
What is the use of a shebang line?
What is the syntax of while loop in shell scripting?
How to enable the shell to know what program should be run to interpret the script?
Is shell a part of kernel?
What is in a script?
What are the different kinds of loops available in shell script?
What are the 3 standard streams in linux?
How do we create command aliases in a shell?
How do I start a shell script?