I'm interested in deleting all the files in a directory which aren't .tar and then moving all the tar files to the archive sub-directory.
Can anyone assist with this simply syntax? I'm a windows guy... :(
[root@localhost hdd_bench]# pwd
[root@localhost hdd_bench]# ls
I want to do something like:
rm 2015-06* where not like .tar && mv *.tar /archive/..