Hello,
I am new to awk and an trying to extract a part of a string.
The sting has a delimiter of "_" and I want to extract the string before the last "_".
For ex: if I have
abc_def_ghi_2
I need to extract
abc_def_ghi.
Can it be done in a single awk statement.
Please help.
Thanks
I am new to awk and an trying to extract a part of a string.
The sting has a delimiter of "_" and I want to extract the string before the last "_".
For ex: if I have
abc_def_ghi_2
I need to extract
abc_def_ghi.
Can it be done in a single awk statement.
Please help.
Thanks