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 @echo off?

0 Answers  


What is the fastest scripting language?

0 Answers  


How to print all the arguments provided to the script?

0 Answers  


Why is shell scripting important?

0 Answers  


How can the contents of a file inside jar be read without extracting in a shell script?

0 Answers  


What is "test"? How it is used in shell scripting?

2 Answers  


What is an inode block?

0 Answers  


How do I set bash as default shell mac?

0 Answers  


What are the different types of variables used in shell script?

0 Answers  


What is the use of echo in shell script?

0 Answers  


What are the advantages of shell script?

0 Answers  


Hi Friends, I am currently Undergoing Course On Testing.I am Planning To Keep Fake Resume.Can any One tell me the ways to Prepare i.e, Real Time experience For Manual Testing. With Regards, Vikram

1 Answers  


Categories