Hi,
I've got a scripting question.
I've got the following files: NAME-access_log
NAME is different per file.
I want to have only NAME.
On linux the following works:
ls *-access_log |awk -F -access_log '{print $1}'
output:
NAME1
NAME2
NAME3
etc...
Unfortunatly, this doesn't work with solaris :-(
It just keeps printing
NAME1-access_log
NAME2-access_log
NAME3-access_log
etc...
Does anyone has an idea, how to solve this?
thanks in advance
Andree