Basically, I have this script that updates wifi firmware on jailbroken devices (iOS). I need to check the output of this:
/usr/libexec/wifiFirmwareLoader -f
This outputs me the file path to the correct files needed for the rest of the script, but I don't want the whole path, I only want the name of the file at the end of the path. How could I go about parsing this?
If you need an example, this is what the output looks like.
RESOLVED /usr/share/firmware/wifi/C748383-A3/hans.trx
I would only want to store hans.trx
in a variable.