The Linux basename utility has an optional second argument. If you give the command basename path suffix, basename removes the suffix and the prefix from path:

$ basename src/shellfiles/prog.bash .bash
prog
$ basename src/shellfiles/prog.bash .c
prog.bash


Add this feature to the function you wrote for exercise 14.



Computer Science & Information Technology

You might also like to view...

JDBC supports _______, so you do not need to manually load the database driver before accessing a database.

a. automatic driver downloading b. automatic driver creation c. automatic driver discovery d. None of the above.

Computer Science & Information Technology

The ____ symbol indicates that an element occurs at least once.

A. ^ B. ? C. + D. &

Computer Science & Information Technology

Event sounds are useful when you need the animation in your movie to coincide with the sound.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

It is difficult to detect someone who is piggybacking

Indicate whether the statement is true or false

Computer Science & Information Technology