Search Results

Search: Posts Made By: c_lady
1,416
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
3,103
Posted By Jotne
With awk awk...
With awk
awk '{gsub(/[0-9]*:/,"");gsub(/\.[0-9]*/,"")}1'
3,103
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,103
Posted By hergp
Try: sed 's/[0-9]*://g;s/\.[0-9]*//g'...
Try:


sed 's/[0-9]*://g;s/\.[0-9]*//g' inputfile
Showing results 1 to 4 of 4

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