DiscussAdmin Forum Seperator
Advert Left
User CP New PostsFavorites FAQReferrers Web Tools

Tutorials & FAQs Looking to extend your knowledge? Find tutorials and FAQs posted by other DA members here.

DiscussAdmin Forum » Webmaster Forums » Tutorials & FAQs » Rar files into X size splits


Reply
 
LinkBack Thread Tools Display Modes
Full Member
 
Join Date: Oct 2009
Posts: 295
iTrader: (0)

flam3 is on a distinguished road

Old 03-07-2010   #1 (permalink)
Rar files into X size splits


Php Code:

Code:
#!/bin/bash
#Author: Avek
#Add all files/folders from folder to different archives
#Delete files/folders after successfully adding to rar
#Split to volume set in mb by user - 1st option eg
#./script 10 = 10mb splits Standard size = 100 mb

if [ $1 ]; then
  SIZE=$(($1 * 1024))
else
  SIZE=$((100 * 1024))
fi
Sname=`echo $0 | sed 's/.\///g'`;

for x in *
do
  if [ "$x" == "$Sname" ]; then
    echo -ne;
  elif [ -d "$x" ] || [ -e "$x" ]; then
      rar a -df -m0 -v"$SIZE"k "$x".rar "$x"
  fi
done
flam3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Junior Member
 
deathshadow's Avatar
 
Join Date: Aug 2008
Posts: 130
iTrader: (0)

deathshadow is on a distinguished road

Old 03-07-2010   #2 (permalink)
Ah, either still thinking the usenet has relevance, or just out to annoy people downloading said files...

What is this, 1997?
deathshadow is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Registered User
 
Join Date: Apr 2010
Posts: 17
iTrader: (0)

Jason45 is on a distinguished road

Old 04-16-2010   #3 (permalink)
thanks for advance, i have had some issues, now can solve them
Jason45 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0
Copyright ©2007 - 2010. DiscussAdmin.com. All rights reserved.
All times are GMT -4. The time now is 07:02 PM.
Web hosting
Quick Registration
User Name:
Password:
Confirm Password:
Email:
Confirm Email:
Birthday:  
Check to Agree with forum rules 

Login!
Not Registered yet? Click here to do so now!

Advertisements