I have moved a tar.bz2 from my Downloads to /usr/src, which is where I like to put all things that I install on my system. Now I extracted the file and I want to move its contents to /usr/share/icons. But I do not want to move the tar.bz2 itself:
# ls -l | grep Comix
-rw-rw-r-- 1 guarddog guarddog 2190951 May 26 11:03 ComixCursors-0.8.2.tar.bz2
drwxr-xr-x 3 root root 4096 Oct 23 2013 ComixCursors-Black
drwxr-xr-x 3 root root 4096 Oct 23 2013 ComixCursors-Blue
drwxr-xr-x 3 root root 4096 Oct 23 2013 ComixCursors-Green
drwxr-xr-x 3 root root 4096 Oct 23 2013 ComixCursors-Orange
In the output command I want to move everything besides the tar.bz2, within the terminal.
I tried the following but unfortunately it moves the tar.bz2 as well:
mv Comix*[!tar.bz] /usr/local/share
I expected the negation operator to exclude the file ending wit tar.bz. The solution below is what I was looking for, didn't want to use find with complicated flags.
export
? – heemayl May 26 '15 at 15:35export
..although you have unset it later on,export
is totally needless there – heemayl May 26 '15 at 15:47