Fritz Thomas

Posts Tagged ‘shell

This is an update and in depth look to my previous Blog post of “How to get absolute path within the running shell script“. In my previous post i used a solution with readlink which is not available everywhere. Especially on Mac OS there is no readlink. But, we do not need readlink anyway…

cd /home/USER tar cf – . | (cd /dir/where/you/want/to/copy && tar xBf -) This has some advantages over cp -rfp. You can read it in detail at O`Reilly

Take a look at my updated post Have you ever needed the absolute path of the shell script within this script? I do not mean the current working dir (pwd). That is different, because you do not know from which path the bash script is called. In my case i needed the absolute path, because [...]




Latest Tweets

Posting tweet...