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

How are shells born?

0 Answers  


Write a shell script to check whether a number is Armstrong number or not?

1 Answers   Flipkart,


What is option in shell script?

0 Answers  


What are the different commands available to check the disk usage?

0 Answers  


c program which accept one argument as a directory name and prints all the file name along with its inode number and total count of the file in directory

1 Answers  


how to search for vowels a,e,i,o,u appearing in the same sequence in a file

4 Answers   Amazon,


What is the syntax of "nested if statement" in shell scripting?

0 Answers  


How to enable the shell to know what program should be run to interpret the script?

3 Answers  


What are the different communication commands available in the shell?

0 Answers  


What is the use of a shebang line?

0 Answers  


What is another name for a bash shell script that you might see?

0 Answers  


How can I Debug a shell scripts and Perl scripting?? or How do you debug a shell scripting and perl scripting ( at the compile time error or run time error) in Unix environment ?

4 Answers  


Categories