How would I achieve the desired result below using awk. I wish to remove all characters from the second "-" onwards:
Input file:
tqharvc -d EDB_PRODUCTION -T 4
tqhrrpvc -d EDB_PRODUCTION2 -T R1
Desired result:
tqharvc -d EDB_PRODUCTION
tqhrrpvc -d EDB_PRODUCTION2
Thanks
Input file:
tqharvc -d EDB_PRODUCTION -T 4
tqhrrpvc -d EDB_PRODUCTION2 -T R1
Desired result:
tqharvc -d EDB_PRODUCTION
tqhrrpvc -d EDB_PRODUCTION2
Thanks