Write a shell script in Linux to shift all characters in a
file forward by five characters. (Thus “a”
becomes “f’”).
Answers were Sorted based on User's Feedback
Answer / manuswami
cat test.txt | tr '[a-z A-Z]' '[f-za-e F-ZA-E]'
Is This Answer Correct ? | 41 Yes | 6 No |
Answer / 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 |
How are shells born?
Write a shell script to check whether a number is Armstrong number or not?
What is option in shell script?
What are the different commands available to check the disk usage?
c program which accept one argument as a directory name and prints all the file name along with its inode number and total count of the file in directory
how to search for vowels a,e,i,o,u appearing in the same sequence in a file
What is the syntax of "nested if statement" in shell scripting?
How to enable the shell to know what program should be run to interpret the script?
What are the different communication commands available in the shell?
What is the use of a shebang line?
What is another name for a bash shell script that you might see?
How can I Debug a shell scripts and Perl scripting?? or How do you debug a shell scripting and perl scripting ( at the compile time error or run time error) in Unix environment ?