Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm an avide user of mandrake linux, currently at 10.1, and also am an avid downloader of all that the world of newsgroups have to offer.
Recently Ive been attempting to use a bash script in linux to replace a .bat file for windows, that glues a group of split files back together.
The files are split originally using one of many available programs. These programs seems to produce similar split file groups, labeled file.mpg.001, file.mpg.002, etc..
The windoz script (.bat) looks like this :
@echo off
echo.
echo.
echo Recreating the Original File From the Pieces.
copy/b "REM-Live.mpeg.001" "REM-Live.mpeg"
copy/b "REM-Live.mpg" + "REM-Live.mpeg.002"
copy/b "REM-Live.mpg" + "REM-Live.mpeg.003"
copy/b "REM-Live.mpg" + "REM-Live.mpeg.004"
copy/b "REM-Live.mpg" + "REM-Live.mpeg.005"
copy/b "REM-Live.mpg" + "REM-Live.mpeg.006"
copy/b "REM-Live.mpg" + "REM-Live.mpeg.007"
copy/b "REM-Live.mpg" + "REM-Live.mpeg.008"
copy/b "REM-Live.mpg" + "REM-Live.mpeg.009"
copy/b "REM-Live.mpg" + "REM-Live.mpeg.010"
copy/b "REM-Live.mpg" + "REM-Live.mpeg.011"
echo.
echo All Done Joining the Files.
Ive scoured the internet, google, and this site to find a reasonable way to convert this script, or to write a custom script using bash commands, possible cp, cat, or join.
Ive had no success, and would like any help that you could offer!
I'm not an expert in bash scripting, and really need some assistance.
Cheers!
Thanks to you both!
It turn out that either approach gets some result.
Thsnks,
I was curious to see what the equivalent linux script would be, and as it turns out, one can replace an entire .bat file of text with a single line.
This rocks!
Cheers,
Have a good week.
Originally posted by CrooningTard Thanks to you both!
It turn out that either approach gets some result.
Thsnks,
I was curious to see what the equivalent linux script would be, and as it turns out, one can replace an entire .bat file of text with a single line.
This rocks!
Cheers,
Have a good week.
Pleasure mate,
and unix/linux OWNS you... ;}
With a little knowledge and some thought with
those systems you can achieve things that would
require some heavy programming in a winDOHs-
environment ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.