Search Results

Search: Posts Made By: traveltrousers
5,953
Posted By traveltrousers
How can I delete every third AND fourth line in a file?
cat test.nmea|awk 'NR%3!=0'

This deletes the 3rd line, or I can delete the fourth but I can't figure out how to delete the 3rd and 4th together. I'm looking for a quick way to make a GPS log half...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 07:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy