Moving files around to include hidden files

Often times when moving files from one directory to another, specifically when dealing with web folders, I have missed out the all important .htaccess hidden files with just the usual `mv source/* destination` command.

Here’s a one liner that will include the hidden files too:

$ ls -A <source> | while read i; do mv <source>/"$i" <destination>; done
thueserve 728x90 Moving files around to include hidden files

Incoming search terms:

Tags: · ·
digg delicious stumbleupon technorati Google live facebook Sphinn Mixx newsvine reddit yahoomyweb