aliasing command

hi to all members in this forums .. Nice to meet you...
i only have a questions about command utility of "dd":
for example i will type:

pico trial

this is my file.

and save it and type chmod a+x trial

can there be a way that instead of typing:

dd if=trial of=trial.copy conv=ucase

so that my output in script trial will all become UPPERCASE.

And i want to change this "dd" command to "copyconv" just like the functionality of "dd" command also.. and the "conv=ucase" i would like to do the "conv=u" so that the content of my script trial will become UPPERCASE..

sample:

copyconv if=trial of=trial.copy conv=u??

Is this possible?? Someone help please...

It's possible, but i fail to see the point of such program.
There are plenty of other programs which will do the same (sed, tr).

But ..

Make a shell function and put it in your .profile file (the name depends on your current shell for the user running it)

copyconv () {
UCASE=$(echo $3 | sed "s/u$/ucase/g")
dd $1 $2 $UCASE
}

You are better of with simplifying things for your copyconv command

copyconv () {
dd if=$1 of=$1.copy conv=ucase
}

You can then invoke it like :

copyconv trial

Hmm. Looks remarkably similar to a recent homework post by tyraolivia1 which we didn't understand either.

Unless you can prove its not homework, thread is closed, and at next similar post not in homework you will be banned...