Search Results

Search: Posts Made By: RudiC
2,533
Posted By RudiC
Given that the input is one single line of text,...
Given that the input is one single line of text, try
awk '
{N = split ($0, T, ".")
CNT = 1
while (CNT <= N) {RND = int(5*(1+rand()))
...
2,533
Posted By RudiC
I'm not aware of a random function in sed; which...
I'm not aware of a random function in sed; which version do you use?

And, while your code sample (ignoring the RANDOM stuff) will add a <NL> char to some EOL (end of line), in post#1 you specify...
Showing results 1 to 2 of 2

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