Search Results

Search: Posts Made By: nexional
17,860
Posted By xbin
sed -n '/string/h;${x;p;}' file Hold the...
sed -n '/string/h;${x;p;}' file

Hold the last occurrence of the pattern "string"; put "string" into the pattern and print.
Showing results 1 to 1 of 1

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