Trim end of nth unix column
I have a table structure:
ous.txt 1452 1793
out.txt 36796 14997
ouw.txt 478 4247
3 columns and many rows.
I want to trim ".txt" - last 4 characters from column # 1 (with awk, sed).
I know that line end aborting was covered here, but I don't know how to access the end of the nth column.
+3
source to share