Search Results

Search: Posts Made By: askerbis
1,756
Posted By mjf
Here's another way using awk: awk -F- '{if...
Here's another way using awk:

awk -F- '{if (NR==1) {first=$1}} {if (first==$1) print $0; else {print "#"; print $0; first=$1}}' file.txt
Showing results 1 to 1 of 1

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