Search Results

Search: Posts Made By: leolson
16,391
Posted By Scrutinizer
Try: sed -e :a -e 's/\(...\)[^*]/\1*/;ta' file ...
Try:
sed -e :a -e 's/\(...\)[^*]/\1*/;ta' file
GNU sed:
sed ':a;s/\(...\)[^*]/\1*/;ta' file
--
Can it be perl?
perl -pe 's/(?<=...)./*/g' file
16,391
Posted By RudiC
Trysed -E 's/(...)./\1*/; :A s/ [^*]/**/; tA'...
Trysed -E 's/(...)./\1*/; :A s/
[^*]/**/; tA' file2
aba*****
cdc*******
efe******

For legibility I've used the -E (= -r) option so the parentheses etc. don't need to be escaped.
2,773
Posted By Corona688
Those commands are trying to load the entire line...
Those commands are trying to load the entire line into memory at once, which won't work on a 64 32-bit system since there's a 4GB limit on per-process memory and sufficient clutter in the way that...
Showing results 1 to 3 of 3

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