Last active
December 14, 2015 19:08
-
-
Save OnesimusUnbound/5134226 to your computer and use it in GitHub Desktop.
added unzip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TAR | |
tar -cf archive.tar foo bar # Create archive.tar from files foo and bar. | |
tar -tvf archive.tar # List all files in archive.tar verbosely. | |
tar -xf archive.tar # Extract all files from archive.tar. | |
# get line 5 to end, then print fifth column, sort, then get uniq. | |
sed -n '5,$p' <file> | gawk '{print $5}' | sort | uniq | |
# remove vss files within folder and sub folders | |
find . -iname '*.*scc' -type f -print0 | xargs -0 rm | |
# select lines with `matches` then, using tab as separator, get the first item, | |
# then get unique items | |
grep matches <file> | gawk 'BEGIN { FS="\t" } {print $1}' | sort | uniq | |
# to recusively download content and map internal links to relative links | |
wget -r -l 0 -w 5 -k "url" | |
# to recusively download content in one directory and map internal links to relative links | |
# NOTE: create first a folder where the content are to be downloaded. | |
wget -r -l 0 -w 5 -k -nd "url" | |
# restrict download on certain directory of web site | |
wget -r -w 5 --include-directories=recipes http://web.site/recipes/ | |
# unzip all zip files | |
unzip '*.zip' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment