#!/bin/bash
mkdir ~/dir
mkdir ~/dir/dir1 ~/dir/dir2
cp ./* ~/dir/dir1/
cp ./*.sh ~/dir/dir2/
tar -cJf dir2.tar.xz ~/dir/dir2
mv dir2.tar.xz ~/dir/dir1
tar -xvf ~/dir/dir1/dir2.tar.xz
tree ~/dir/
xmind
#!/bin/bash
mkdir ~/dir
mkdir ~/dir/dir1 ~/dir/dir2
cp ./* ~/dir/dir1/
cp ./*.sh ~/dir/dir2/
tar -cJf dir2.tar.xz ~/dir/dir2
mv dir2.tar.xz ~/dir/dir1
tar -xvf ~/dir/dir1/dir2.tar.xz
tree ~/dir/
xmind