My objective is to make a shell script that, when run, you can input multiple links at once.
text is then inserted between the http:// part and the following url.
example :
http://google.be ==> http://sometext.google.be
it would be great if it could then open all the created links (wich will be download links to rar files.) in the default browser or download the files through the terminal (i work on a mac btw). it's also good if it just echo's the created links in the terminal.
could someone provide me with good instructions or the script to do this so i can study it and use / tweak it.
the only part i found was the substitution for the links but i didn't get it to work
It you want to open the sites of created links just use this ,
url="http://google.be"
count=0;
while [ $count -le 4 ]
do
read text
f_url=`echo $url | sed -r "s/(:\/\/)/\1$text./"`
let count=$count+1;
gnome-www-browser $f_url
done