Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unix script

Status
Not open for further replies.

ksdh

Technical User
Oct 24, 2007
41
IN
Can anyone help me develop a unix script to generate a data of lets say 1000 subscribers, having 26 fields. an example would be 262020410000001;MMC;5;01620450752;CDDDDDDAAPOLCU;CDDDDDAAPOLLO;CDDDDDAAWKACU;CDD
DDDDAAWKAUS;CDDDDDDACYBIMM;Mannesmann Mobilfunk GmbH;200016666666;Vodafone;N;N;N
;N;;;UCCCCCCCC;Y;ROAMTIOT;;;;;C
I want to test system performance of 50 million .

Thanks
 
Hi

While you did not mentioned which fields what values can have :
Code:
yes "262[gray](...)[/gray];;C" > /output/file
And do not forget to press Ctrl-C after ten minutes...

Feherke.
 
Sorry, We just increment the first field by 1 every time, the rest could remain the same
 
Hi

Got it. Then better use [tt]seq[/tt]. The two numeric parameters are the start and end values. ( The below example will output 10 lines. )
Code:
seq -f '%1.0f;MMC;[gray](...)[/gray];;C' 262020410000001 262020410000010
Tested with GNU [tt]seq[/tt].

Feherke.
 
Sorry Feherke, that doesnt seem to be working, Actually it says, command not found.I am working on a solaris box here, i also have access to linux boxes. Would you like to make the changes, if any


Thanks
 
Sorry Feherke,
I tried it again,seems to be working fine now.

Thanks a lot
 
No,its working on my Linux, should be working on solaris as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top