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

What is bash coding?

0 Answers  


What language is bash?

0 Answers  


What are the different kinds of loops available in shell script?

3 Answers  


What is the significance of the shebang line in shell scripting?

0 Answers  


Given a file find the count of lines containing the word "abc".

0 Answers  


How to pass an argument to a script?

0 Answers  


What is sh in shell script?

0 Answers  


What are the two files of crontab command?

0 Answers  


How do I open the shell prompt?

0 Answers  


How to customise the other shell?

2 Answers   Quest,


What is shell terminal?

0 Answers  


Is shell scripting useful?

0 Answers  


Categories