/usr/local/bin/comp_hist
I use find command eg .find / -type f -name "test.log" -exec ls -lt {} \; , the output is the full path eg. /tmp/test.log , can advise if I want to exclude the path , the output is test.log , what can i do ?
thx |
You can use the basename utility:
Code:
find / -type f -name 'test.log' -exec basename {} \; 2>/dev/null Code:
. |
All times are GMT -5. The time now is 09:13 AM. |