By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,587 Members | 1,079 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,587 IT Pros & Developers. It's quick & easy.

Who can solve this bash :script?

P: 1
Thank you very much for who can solve this bash script:
"Create on the filesystem a bash proceedure createdata that creates collections that that will have to contain a variable, a random number, comprised between 300 and 600, of binary files of dimension comprised between 10 Kbytes and 30 kbytes.
Also the names of the files are random and are composed from 20 chars plus the jpg extension."

Working sample:

Expand|Select|Wrap|Line Numbers
  2. createdata /data 20
  4. result:
  6. /data
  7.       tlc01
  8.              collection001
  9.                              ttretdgdfgasjojgvao.jpg
  10.                              grtghgfhysystudbbnh.jpg
  11.                              ...
  12.              ...
  13.              collection019
  14.                              ...

it must create therefore beyond to the directory given the sottodirectory tlc01, then the 20 collections

Thanks indeed for who can help me :-)
Jun 1 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 315
Thanks indeed for who can help me :-)
Please have a look at these guidelines, esp. at the first paragraph.
Jun 1 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.