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

Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.

574


What is the difference between break and continue commands?

579


What lives in a shell?

543


What does echo $0 do?

591


Explain how you Automate your application using Shell scripting.

1854






What is eval in shell script?

653


determine the output of the following command: echo ${new:-variable}

550


How do I open the shell prompt?

576


What is echo in shell?

640


How do I read a .sh file?

532


I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?

1686


How will you emulate wc –l using awk?

913


Please give me example of " at command , contrab command " how to use

2331


c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again

5241


How can I send a mail with a compressed file as an attachment?

558