Originally Posted by johnsanty
So basically, it's a script which contains a specific command? So, for example if I want to wrap a command "ls", all I need to do is write a script and put the command "ls" in this script? Is that correct? If not, could you give me an example? Thanks for your prompt reply...
yeh pretty much. usually when you wrap something you usually do it because you want to change the behavior of the command, but still need the same base functionality. so with ls example, if you want to print out the current directoy that you are listing then it would be something like
echo "listing contents of " `pwd`
put that in an executable file named lspwd and you have just wrapped ls command
also in a more programming sense a wrapper is used to change an interface in some way.. but it sounds like you are looking for something like the above right..