Skip to content

Checks if this script is already running, if it's running write an error and exit creates 100 random folders. creates 100 files in each folder with the following rules: random size of 50K to 200K random file-name prefix of a, b or c random content of a-z, A-Z, 0-9, ' ' (space) for each file in each folder, remove all spaces in a file for each fi…

Notifications You must be signed in to change notification settings

eliranbz/bash_create_random_files_and_folders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Bash-RandomFilesAndFolders-MD5-ContentManipulation

  1. checks if this script is already running, if it's running write an error and exit
  2. creates 100 random folders
  3. creates 100 files in each folder with the following rules:
    • random size of 50K to 200K
    • random file-name prefix of a, b or c
    • random content of a-z, A-Z, 0-9, ' ' (space)
  4. for each file in each folder, remove all spaces in a file
  5. for each file in each folder, create .md5 file
  6. if any of the steps above fails, exit and write an email

About

Checks if this script is already running, if it's running write an error and exit creates 100 random folders. creates 100 files in each folder with the following rules: random size of 50K to 200K random file-name prefix of a, b or c random content of a-z, A-Z, 0-9, ' ' (space) for each file in each folder, remove all spaces in a file for each fi…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages