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
What is the meaning of $1 in shell script?
What is scripting autism?
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
What does $$ mean in shell script?
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.
How do we create command aliases in a shell?
How to set an array in linux?
Can shell script run on windows?
Explain about return code?
What is a shell? · Types of shell · what is shell scripting?
Give some situations where typing error can destroy a program?
What are the different types of commonly used shells on a typical linux system?
What is shift command in shell script?
Explain about debugging?
What are scripts in psychology?