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

How do you debug a script?

654


What are "c" and "b" permission fields of a file?

645


How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?

792


write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.

2313


What is the default shell of solaris?

652






What is gui scripting?

698


What is awk in shell script?

838


What is bash used for?

660


How do you create a shortcut in linux?

673


Is shell a part of kernel?

648


What is the default ubuntu terminal?

717


What are the default permissions of a file when it is created?

574


I have 2 files and I want to print the records which are common to both.

795


What are the advantages of shell script?

605


What are filters explain sort with all the options available?

1030