Moving files around to include hidden files
January 7th, 2013 |
|
0 Comments »
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













Comments (0)
Trackbacks - Pingbacks (0)