From a2191d03bdedfba3ee109e042954ee51cebcab8d Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Sat, 28 Feb 2015 12:38:52 -0500 Subject: [PATCH] Added linux snippet to uncompress all tar.gz files in the current directory to another directory. --- commands/linux.ipynb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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": {}