Search Results

Search: Posts Made By: dcfargo
4,983
Posted By Christoph Spohr
Ok, try: sed -n...
Ok, try:

sed -n "/\sstring\/one\s/,/Finished/{p}" file

Output:
This is string/one today
string/one_is_here
string/one_is_there
Finished with the list


HTH Chris
2,884
Posted By bartus11
awk 'NR==1{x=$2;print;next}{if (x==$2){next} else...
awk 'NR==1{x=$2;print;next}{if (x==$2){next} else {x=$2;print}}' infile
Showing results 1 to 2 of 2

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