Hi
I have a file ( Name errorfile.txt) full of lines like the one below
$APP_SCR/dwh_exit_error.scr "$?" "Error in <dwh_hub_if_ow_build_if0005.sql> Exiting"
I need to extract the filename within < >
I tried doing a
awk '{ sub(/^[^>]*>/,""); sub(/<.*$/,""); print $0 } ' errorfile.txt
but it comes back with syntax errors and I cant figure out why.
Any ideas pls ?