Zeitplan, Installationshinweise etc.: https://evamarik.github.io/2019-11-frankfurt/
Restaurant Eppstein (traditionelle Frankfurter Küche) Eppsteiner Str. 26, 60323 Frankfurt am Main: https://www.google.com/maps/place/Eppstein/@50.120612,8.667246,15z/data=!4m5!3m4!1s0x0:0x8d71de5cb0df90fe!8m2!3d50.120612!4d8.667246
Welche Begriffe, Phrasen oder Ideen rund um Programmieren, Code oder Software-Entwicklung sind euch schon begegnet? Bei welchen habt ihr das Gefühl, dass ihr mehr darüber wissen solltet?
RegEx Cheat Sheet: https://librarycarpentry.org/lc-data-intro/reference
Textdatei zum Üben
Online RegEx Tester
Zum Üben: Regex Crossword
Noch mehr Übungen: [https://regexone.com/lesson/introduction_abcs]
open_apc_url = "https://raw.githubusercontent.com/OpenAPC/openapc-de/master/data/fuberlin/APC_FU_Berlin_2015.csv"
https://api.crossref.org/works/
# Einzelner DOI
10.1371/journal.pcbi.1004668
# Liste mit DOIs
dois = ["10.1371/journal.pcbi.1004668",
"10.21105/joss.01035",
"10.1038/35057062",
"10.21105/joss.01006"]
pwd
- print working directory
ls
- list contents of a directory
ls -l
- list file information
ls -lh
- list human readable file information
ls -F
- list files and directories (directories will have a trailing /
)
ls -a
- list all files, including hidden files
ls *.txt
- list all files that end with .txt
cd
change directory
cd pathname
- takes you to the directory specified by pathname
cd ~
- takes you to your home directory
cd ..
- takes you up one directory
history
- displays the history list with line numbers, use n
to limit the list
cat
print to shell or send file or files to output
head
output first 10 lines of a file or files
tail
output last 10 lines of a file or files
less
interactive file reader
mv
rename or move a file or files. Syntax for renaming a file: mv FILENAME NEWFILENAME
cp
make a backup copy of a file or files. Syntax: cp FILENAME NEWFILENAME
mkdir
make a directory
>
redirect output. Syntax with cat
: cat FILENAME1 FILENAME2 > NEWFILENAME
>>
redirect output by appending to the filename specified. Syntax with cat
: cat FILENAME1 FILENAME2 >> NEWFILENAME
rm
remove a file or files. NB: USE WITH EXTREME CAUTION!!!
rmdir -r
will delete a directory, even if it is not empty. USE WITH EXTREME CAUTION!!!
rmdir -r-i
will delete a directory, even if it is not empty, but will ask you to confirm each deletion.
touch
will update timestamp information on files. And creates empty files.
wc
word count
sort
sort input
Erforschen Sie ihr Dateisystem! (Tipp: Wer das Verzeichnis nochmal im Explorer sehen möchte explorer .
) Wie werden unterschiedliche Dateitypen dargestellt?
Sehen Sie sich die Einträge in der Hilfe der Werkzeuge an. (Bspw. ls --help
)
2.1 Finden Sie heraus, wie Sie Dateien nach Größe ordnen können!
2.2 Im Anschluss sortieren Sie Dateien nach ihrem letzten Modifikationsdatum.
Legen Sie ein Backup von gulliver.txt
an mit dem Namen gulliver-backup.txt
Wie gehen sie vor?
mv
kann auch Verzeichnisse umbenennen. Bennen Sie firstdir
zu backup
um. Wie gehen Sie vor?
Wenn das letzte Argument an mv
ein Verzeichnis ist, wird die Datei dort
hin verschoben. Verschieben sie gulliver-backup.txt
in das Verzeichnis backup
Wie gehen sie vor?
Füllt die Leerstellen so, dass das Skritp den Dateinamen, sowie die Erste und die Letzte Zeile aller Textdatein im Verzeichnis ausgibt.
Loop-Lückentext füllen.
___ file in *.txt
__
echo "_file"
head -n 1 _______
____ __ _ _______
____
Zählt die Wörter der tsv Datein und sortiert sie. Nutzt pipes!
Extra: Sortiert in aufsteigender Reihenfolge.
In der Bash
ZBMED-Konfiguration:
$ /c/ProgramData/Anaconda3/python
ZBIW-Konfiguration:
$ winpty /c/Users/SWCarpentry/Anaconda3/python.exe
doaj-article-sample.csv
(Rechtsklick => Ziel/Link speichern unter)
Programm openrefine.exe im OpenRefine Ordner starten (Win), Browserfenster öffnet sich automatisch mit der Adresse http://127.0.0.1:3333
Create Project => Get data from This Computer => Durchsuchen und doaj-article-sample auswählen => Next
Anmerkung: Hier können auch Regular Expressions genutzt werden.
Mehr Information zu den Clustering-Algorithmen:
https://github.com/OpenRefine/OpenRefine/wiki/Clustering-In-Depth
GREL: General Refine Expression Language
https://github.com/OpenRefine/OpenRefine/wiki/General-Refine-Expression-Language
Zusätzliche Infos findet man hier: https://github.com/OpenRefine/OpenRefine/wiki/GREL-Date-Functions
Beispiel http://api.crossref.org/journals/1422-0067
Doku unter https://github.com/CrossRef/rest-api-doc
Reconcilation-Service URL https://lobid.org/gnd/reconcile
Anleitung http://blog.lobid.org/2018/08/27/openrefine.html
Was war gut?
Was war nicht gut? Was könnten wir verbessern?
Welche Themen oder Beispiele wären interessant?
Danke für Euer Feedback!
Alle behandelten Stoffe, Lektionen, Beispiele usw. sind verfügbar unter: https://librarycarpentry.org
https://librarycarpentry.org/lc-data-intro/
https://librarycarpentry.org/lc-shell/
https://librarycarpentry.org/lc-python-intro/
https://librarycarpentry.org/lc-open-refine/