2011-07-01 ... /home/todd/logs/server_log_1.log ... 2011-07-02 ... /home/todd/logs/server_log_2.log ... 2011-07-03 ... /home/todd/logs/server_log_3.log ...
My file looks like above. I want to extract the file names from it and output it to STDOUT as:
server_log_1.log server_log_2.log server_log_3.log
Can anyone help? Thanks!
The file name template is server_log_xxx.log, and it occurs only once per line.
Dagang
source share