diff --git a/commands/linux.ipynb b/commands/linux.ipynb index 3fa8a5c..abc7230 100644 --- a/commands/linux.ipynb +++ b/commands/linux.ipynb @@ -205,6 +205,30 @@ "language": "python", "metadata": {}, "outputs": [] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Compression" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Uncompress all tar.gz in current directory to another directory" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "for i in *.tar.gz; do echo working on $i; tar xvzf $i -C directory/ ; done" + ], + "language": "python", + "metadata": {}, + "outputs": [] } ], "metadata": {}