marp | theme | class | footer |
---|---|---|---|
true |
gaia |
gaia |
22.02.2020 |
from the replies to a tweet by @xnulz
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
ls -f ./*/*.xml | xargs -I {} xml sel -T -t -m "//mets:structMap/mets:div[@ADMID='AMD']" -v "@LABEL" -n {} | sort | uniq -c |
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
mdb-tables -1 -t table database.mdb | xargs -I tablename sh -c "mdb-export -d \\\\t database.mdb \"tablename\" > \"tablename.tsv\"" |
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
#!/bin/sh | |
head -1 $1 | \ | |
tr "\t" "\n" | \ | |
cat -n | \ | |
percol | \ | |
awk '{print $1}' | \ | |
xargs -I c awk -v x=c 'BEGIN{FS="\t"}{print $x}' $1 | \ | |
less |
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
#!/usr/local/bin/awk -f | |
BEGIN { | |
# adjust the following variables according to your needs: | |
FS = "\t" # the field seperator, "\t" for tab seperated, "," for comma seperated data | |
first = 2 # number of the first header line to be processed | |
last = 4 # number of the last header line to be processed | |
string_delimiter = "\"" # character used for delimiting strings in the input file; set to "" | |
# if none is used (empty string) | |
# Please note that the script will not work as expected if there are additional characters/ |
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
awk -F";" 'NR>1{lage[$7] += $(($4-$2)/2);}END{for (l in lage) printf("%8s%7s\n", l, lage[l]);}' < wohnlagenverzeichnis2011-opendata.txt | |
#> gut 40168 | |
#> normal 103333 |
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
<!DOCTYPE html> | |
<html lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<link rel="stylesheet" href=""> | |
<script src=""></script> | |
</head> | |
<body> |
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
#!/usr/bin/awk -f | |
BEGIN { RS=";\n"; } | |
{ | |
if ( $1 == "CREATE" ) { | |
fn = substr($3,2,length($3)-2) ".csv"; | |
print fn > fn; | |
} | |
if ( $1 == "INSERT" ) { | |
iv = index($0,"(")+1; |
NewerOlder