parameter subsitution

Now suppose we are working in directory called
"/the/path" and I want to copy some samba
files from "/mnt/cdrom/lsoft" to my current working directory, then my
command will be something like

$cp /mnt/cdrom/lsoft/samba*.rmp /the/path

Instead of giving above command I can give command as follows

$cp /mnt/cdrom/lsoft/samba*.rmp `pwd`

Here file is copied to your working directory. See the last Parameter
substitution of `pwd` command, expand it self to
/the/path. This will save my time.

No comments:

Other Articles

Enter your email address: