Question: Bash Programming: The function from 7-4 like stated on Question 2: Exercises What is wrong with this code (besides the inefficiency noted at the beginning
Bash Programming:

The function from 7-4 like stated on Question 2:

Exercises What is wrong with this code (besides the inefficiency noted at the beginning of the chapter)? 1. if echo ${PATH} Igrep -q /usr/games PATH $PATH:/usr/games fi Listing 7-4 3. Write a function, palindrome, that checks whether its command-line argument is a palindrome (that is, a word or phrase that is spelled the same backward and forward). Note that spaces and punctuation are ignored in the test. Exit successfully if it is a palindrome. Include an option to print a message as well as set the return code. 4. Write two functions, ltrim and rtrim, that trim characters in the same manner as trim but from only one side of the string, left and right, respectively
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
