I have a query on unix move for files not matching pattern. Example below:
Directory listing
20150325
20150326
20150327
20150328
archieve
Now, I want to move all the files not matching 20150328 into archieve directory with a single command. Please help......
for x in 2015* ; do if [ ! "$x" = "20150328" ] ; then mv $x archieve; fi ; done