Search Results

Search: Posts Made By: asandy1234
2,281
Posted By DGPickett
Sorry, I meant o, but options vary between...
Sorry, I meant o, but options vary between versions tar xof tarfile
4,940
Posted By summer_cherry
while(<DATA>){ my @tmp = split('"',$_,5); ...
while(<DATA>){
my @tmp = split('"',$_,5);
if(not exists $hash{$tmp[3]}){
$hash{$tmp[3]}=1;
print;
}
else{
if($hash{$tmp[3]}<2){
$hash{$tmp[3]}++;
print;
}
}...
4,940
Posted By radoulov
Yes, it should work.
Yes,
it should work.
4,940
Posted By radoulov
awk -F\" ' count[$4]++ < n { if ($6 ~...
awk -F\" '
count[$4]++ < n {
if ($6 ~ /^(SQL|SELECT)/)
$6 = $6 ~ /^SQL/ ? "SQL" : "SELECT"
else
$6 = "NULL"
print
}' OFS=\" n=2 infile
Showing results 1 to 4 of 4

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