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


Please Help Members By Posting Answers For Below Questions

What is the meaning of $1 in shell script?

592


What is scripting autism?

700


What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

559


What does $$ mean in shell script?

577


Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.

2170






How do we create command aliases in a shell?

539


How to set an array in linux?

593


Can shell script run on windows?

562


Explain about return code?

632


‎What is a shell? · ‎Types of shell · ‎what is shell scripting?

550


Give some situations where typing error can destroy a program?

722


What are the different types of commonly used shells on a typical linux system?

550


What is shift command in shell script?

522


Explain about debugging?

606


What are scripts in psychology?

590