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



Write a shell script in Linux to shift all characters in a file forward by five characters. (Thus ..

Answer / manuswami

cat test.txt | tr '[a-z A-Z]' '[f-za-e F-ZA-E]'

Is This Answer Correct ?    41 Yes 6 No

Write a shell script in Linux to shift all characters in a file forward by five characters. (Thus ..

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

Post New Answer

More Shell Script Interview Questions

Write a command sequence to find all the files modified in less than 2 days and print the record count of each.

0 Answers  


When should shell programming/scripting not be used?

0 Answers  


What is bash coding?

0 Answers  


Is shell a part of kernel?

0 Answers  


What is the best shell scripting language?

0 Answers  






How can I send a mail with a compressed file as an attachment?

0 Answers  


How to write a function?

0 Answers  


What is the syntax of "expr" command?

2 Answers  


write a shell script to check whether all the directories in the path exist has read and write permission

1 Answers  


How to take input values from the user?

4 Answers  


Create a bash shell script that reads a line from the user consisting of 5 words and then prints them out in reverse order. Name this script "reverse.sh"

1 Answers  


How to get the first line from a file using just the terminal?

0 Answers  


Categories