i'd like to know if it's possible to create a script from a terminal command.
for instance, i'd like to have a script mycopy.sh
that copy files:
cp myfile destfile
cp my2file my2desfile
but i would like to create this script FROM the terminal using coreutils, something like (this of course WON'T do
cp myfile destfile && cp my2file my2desfile >> mycopy.sh
is this possible?