1

Move file contents to another file with bash script (find, mimetype and cat)

view story
linux-howto

http://www.linuxquestions.org – Hi There :) I get some files from my ftp and now I want to sort them. Some are images, some are text files which contain one link each. I want to sort the files with a while loop. Here is what I have done so far. Code: #!/bin/bash #: Script for getting stuff from the ftp #: Step 1 will get the files #: Step 2 will get the links :) #: Step 3 will follow the links HOST=192.111.222.333 USER=username PASS=userpass # Step 1. Uses the ftp command with the -inv switches.  -i turns off interactive prompting. -n Restrains FTP from attempting the auto-login feature. -v enables verbose and pr (HowTos)