Write a shell script in Linux to shift all characters in a
file forward by five characters. (Thus “a”
becomes “f’”).

Answer Posted / manuswami

cat test.txt | tr '[a-z A-Z]' '[f-za-e F-ZA-E]'

Is This Answer Correct ?    41 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the fastest scripting language?

547


How can I set the default rwx permission to all users on every file which is created in the current shell?

902


Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?

1711


Why are shell scripts used?

622


What is k shell?

532






What are different types of shell?

489


what is tickets $ what low,medium,high priorite pls define time also

1718


Write a command sequence to find the count of each word?

538


What does .sh file contain?

548


What language is bash written in?

559


What are the advantages of shell scripting?

582


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

1010


What is a boot block?

581


How to use arguments in a script?

579


What is sed in shell script?

568