Search Results

Search: Posts Made By: RJSKR28
1,718
Posted By RudiC
There are umpteen ways to skin a cat ... The...
There are umpteen ways to skin a cat ...
The single quotes prevent the expansion of the shell variable - use double quotes instead. You could also write the script incl. the expanded variable to a...
1,994
Posted By RudiC
I was more talking of your own efforts... anyhow,...
I was more talking of your own efforts... anyhow, try
awk '/^ *$/ {CNT = 0; print; next} ++CNT < 3 {T[CNT] = $0; next} CNT == 3 {print T[1]; print T[2]} 1' file
Showing results 1 to 2 of 2

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