Search Results

Search: Posts Made By: ryddner
1,437
Posted By Scrutinizer
Use double quotes instead of single quotes around...
Use double quotes instead of single quotes around cat
1,437
Posted By RudiC
Try awk '/cat/ {CNT++} /time/ {for (;--CNT>0;)...
Try awk '/cat/ {CNT++} /time/ {for (;--CNT>0;) print $3}' file
1,437
Posted By Scrutinizer
Try: awk '/cat|time/{c++} /time/{while (--c>0)...
Try:
awk '/cat|time/{c++} /time/{while (--c>0) print $3}' file
1,437
Posted By RudiC
For exactly the sample given, tryawk '{CNT++}...
For exactly the sample given, tryawk '{CNT++} /time/ {for (;--CNT>0;) print $3}' file
1.1
1.1
1.1
1.2
1.2
1.3
1.3
33,725
Posted By vbe
That it because you should make the first if as a...
That it because you should make the first if as a condition, then the others...

if [ $L1 -eq 0 ]
then
if [ $L2 -eq 1 -o $L2 -eq 2 -o $L2 -eq 3 ]
then
blah
blah...
Showing results 1 to 5 of 5

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