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...
Text alignment refers to ________
A) how the slide is laid out in relation to other slides in the presentation B) the horizontal placement of text within a placeholder C) the vertical placement of text in a placeholder D) all text slide alignment in relation to the slide width
Computer Science & Information Technology
In the figure above, image 2 is a ____.
A. bitmap graphic B. scanned image C. vector graphic D. digitized image
Computer Science & Information Technology