Having trouble extracting absolute directory from type command
I need to extract the absolute directory from the type command when I pass it a program name. E.g.
Code:
>type cat Code:
>type lpr Note: this is part of my solution to a programming assignment in bash shell scripting. |
Quote:
The bash regex matches also have ways of accessing the matches - have a look at the elements of BASH_REMATCH. |
All times are GMT -5. The time now is 06:37 PM. |