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 |
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
When should shell programming/scripting not be used?
What is bash coding?
Is shell a part of kernel?
What is the best shell scripting language?
How can I send a mail with a compressed file as an attachment?
How to write a function?
What is the syntax of "expr" command?
write a shell script to check whether all the directories in the path exist has read and write permission
How to take input values from the user?
Create a bash shell script that reads a line from the user consisting of 5 words and then prints them out in reverse order. Name this script "reverse.sh"
How to get the first line from a file using just the terminal?