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 |
What's the difference between scripting and coding?
How u convert string "hi pravin how are you?" to "Hi Pravin How Are You?"
Explain about shebang?
Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.
How to find duplicate record in file using shell script?
0 Answers IBM, Saama Tech, Wipro,
How do you rename the files(*.sh) with file names containing space in it?for example "interview question.sh" needs to rename to "interview-question.sh". Appreciate your inputs.Thanks.
Explain about echo command?
Why is it called a shell?
Why is used in shell scripting?
What is a boot block?
What is bash coding?
What is option in shell script?