Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
that's not gonna happen.. you need to use a network of some kind..null modem, crossover cable, hub/switch, whatever.. something... split and cat are excellent tools... i often use it for emailing large file via gmail... just send them in several small pieces.. the only other way i see to do it is if there is a FAT partition on the windows machine, you could use a livecd (knoppix, dsl, etc) to boot.. copy the files over, cat them back together, then boot windows and have the full file...
even if you temporarily added a second hard drive the other machine for this purpose, it would be easy.
I don't know of any apps for Windows than will pice together sections of a file though...
i made a script before that will split a file to specified size, split a file to specified number of parts, combine the files, make windows batch file to combine the files in windows
Code:
#!/bin/bash
###########################################################
#
# isplit splits and combine files
#
# Made By : ibrahim riad (Heema)
#
###########################################################
###########################################################
# Main
###########################################################
if [ $# -eq 0 ];then
echo ""
echo "Usage : isplit [option] filename"
echo "option : -s split file to specified size"
echo " -p split file to specified parts"
echo " -c combine the files"
echo " -w make windows batch file to combine the files in windows
"
echo ""
exit
fi
if [ $# -eq 2 ];then
filepath=$2
fi
#echo "Filepath : $filepath"
#echo "num : $#"
###########################################################
case "$1" in
###########################################################
# Split file
###########################################################
-s)
echo -n "Enter desired size (MB) : "
read size
split -b "$size"m "$filepath" "$filepath".
echo "$filepath" > $HOME/.ksplittemp
;;
###########################################################
# Split file to specified parts
###########################################################
-p)
echo -n "Enter desired parts : "
read parts
info=$(ls -l $filepath | awk '{print $5}')
partsize=$((($info/$parts)+1))
split -b "$partsize" "$filepath" "$filepath".
echo "$filepath" > $HOME/.ksplittemp
;;
###########################################################
# Combine the files
###########################################################
-c)
BASE=$(basename "$filepath" | cut -d . -f1)
guess=$(cat $HOME/.ksplittemp)
guessname=$(basename "$guess")
echo -n "Do you want the name of the output to be $guessname (y/n) : "
read answer
if [ "$answer" == "y" ];then
echo ""
else
echo -n "Enter output name : "
read outputname
cat "$BASE".* > "$outputname"
fi
cat "$BASE".* > "$guessname"
;;
###########################################################
# Make windows batch file to combine the files in win$
###########################################################
-w)
basefile=$(basename "$filepath" | cut -d . -f1)
guessing=$(cat $HOME/.ksplittemp)
guessingname=$(basename $guessing)
echo -e "@ echo off\n" > winbatch.bat
echo -e "clr\n" >> winbatch.bat
echo -e "\n" >> winbatch.bat
echo -e "copy /B $basefile.a* $guessingname \n" >> winbatch.bat
echo -e "\n" >> winbatch.bat
echo -e "echo on\n" >> winbatch.bat
;;
*)
echo -e "\033[0;31mThis format is not supported\033[0m"
;;
esac
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.