ksh variable?
Hi all,
I've go the following two lines at the top of a ksh script: logfile=`ls -t /www/Apache/logs/error_log.* | head -1` oldlog=/root/unix_admin/${logfile##*/} I've never come across the ##*/ before, and it's not the easiest thing to Google... Is it regex notation? If not, what is it? I'm not a ksh expert, but I know what I'm doing in bash... Cheers in advance, Davee |
Here is where you want to start reading: http://www.kornshell.com/doc/
Basically it's ksh's way of extracting some substring I think (ie ksh specific regex notation) |
All times are GMT -5. The time now is 07:04 PM. |