Search Results

Search: Posts Made By: c_lady
3,105
Posted By hergp
Try: sed 's/[0-9]*://g;s/\.[0-9]*//g'...
Try:


sed 's/[0-9]*://g;s/\.[0-9]*//g' inputfile
3,105
Posted By balajesuri
perl -lane 'for(@F){s/\d+?:(\d+?)\.\d+/$1/};...
perl -lane 'for(@F){s/\d+?:(\d+?)\.\d+/$1/}; print "@F"' file

sed 's![^:]*:\([0-9]*\)\.[0-9]*!\1 !g' file
3,105
Posted By Jotne
With awk awk...
With awk
awk '{gsub(/[0-9]*:/,"");gsub(/\.[0-9]*/,"")}1'
1,417
Posted By Jotne
awk 'BEGIN {srand()} !/^$/ { if (rand() <= .01)...
awk 'BEGIN {srand()} !/^$/ { if (rand() <= .01) print $0}' file
Should give you ca 10% of the file
Showing results 1 to 4 of 4

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