Search Results

Search: Posts Made By: Demoric
6,236
Posted By Demoric
I think i found a solution myself which turned...
I think i found a solution myself which turned out to be quite easy.
It wont win an award for beautifull code but it should work :)


imsi=''
imsi=$RANDOM$RANDOM$RANDOM$RANDOM$RANDOM...
6,236
Posted By Demoric
Thanks alot for the response. Your solution...
Thanks alot for the response. Your solution works. :) However, would it be possible to replace new_val by a piece of code that inserts a random number at lenght 14? Preferably not starting with a 0....
6,236
Posted By Demoric
Both would be fine, i guess the best looking...
Both would be fine, i guess the best looking would be to replace it with a random number with the same lenght. But just incrementing it by one would do.

Thanks in advance
6,236
Posted By Demoric
Replacing number between xml tags with ksh shell script
Hallo,

im basically a complete noob on shell scripting and im trying to replace or rather add 1 to a number between xml tags.

The xml basically has a tag somewhere that looks like this:
...
Showing results 1 to 4 of 4

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