Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- split_small() {
- # FUNCTION #
- VAR_0() {
- echo -e $orange”Please now type in the destination \nIncluding the file name that you would to be segmented \n[DEST:][FILENAME.ext]=”
- read VAR0
- }
- VAR_I() {
- Echo -e $red”Now this will ve the source destination, \nFor the segmented files. \nGenerally speaking the external hard drive you are trying to get this large file backed up to. \n[SOURCE>DEST:]= “
- Read VAR1
- }
- # VARIABLES #
- S-’sudo’
- # TO PROVIDE THE PROGRAM WITH ELEVATED PRIVILEGES NEEDED TO ENSURE COMMAND COMPLETION
- P=’split’
- # THE TERMINAL COMMAND LINE BINARY WE WILL BE USING
- B=’--bytes=1G’
- # THE SEGMENTED PORTIONS FILE SIZE
- Echo -e “This script runs the split command line, \nExcept ran through here it is highly simplified and user friendly: \nv1ral <Imperialteksolutions@outlook.com> \n$purple Copyright © 2018”
- Echo -e $gray”\nThis script is intended for the use on files of multiple gigabytes \nIt is programmed to split the chosen file into segments of 1GB \nThe split file works perfectly on large .iso’s for example \nWanting to <dd> or <cp> to an external hard drive formatted to FAT32 \nFAT32 having a file size limit on transfers \nThis makes life easy \nNot having to reformat the drive or lose any important DATA “
- #########
- # START #
- #########
- VAR_0
- Echo -e $gray”To verify: \nChosen_file=$VAR0 “
- Echo-e $purple”\nVERIFY: \n1) [y]es \n<OR> \n2) [n]o ”
- Read n
- Case $n in
- Echo -e $blue “Okay GREAT! “;;
- VAR_0;;
- Esac
- VAR_I
- Echo -e $purple”To verify: \nChosen_file=$VAR1 “
- Echo-e $gray”\nVERIFY: \n1) [y]es \n<OR> \n2) [n]o ”
- Read nn
- Case $nn in
- Echo -e $cyan “Okay GREAT! “;;
- VAR_I;;
- Esac
- $S $P $B $VAR0 $VAR1
- Echo -e $orange”$VAR0 is being segmented \nThe segmented pieces are being saved at \nSourcer_Dest=$VAR1 \nWorking….. “
- Sleep 3
- Echo -e $red”Program completion, \nSuccessfully!! \n\nPlease feel free to use our program compile.split, \nWhen you need to piece together the segmented file back to original: \nMade easy, made for you. \n v1ral <Imperialteksolutions@outlook.com> “
- }
- Alias split=’split_small’
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement