Write a shell script in Linux to shift all characters in a
file forward by five characters. (Thus “a”
becomes “f’”).
Answer Posted / 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 |
Post New Answer View All Answers
What is path variable bash?
How to get the first line from a file using just the terminal?
What is bourne shell scripting?
Explain about stdin, stdout and stderr?
Is shell a scripting language?
I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.
What is difference between bash and shell?
How will you copy a file from one machine to other?
How to find duplicate record in file using shell script?
How do you debug a script?
What are the advantages of shell script?
What are the different types of variables used in shell script?
What is the way to do multilevel if-else's in shell scripting?
How to check if a directory exists?
How do scripts work?