Skip to content
Snippets Groups Projects
Commit 0ad0659d authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

Vorbereitung 8. und 9.10.2024

parent 7e0fb2f1
No related branches found
No related tags found
No related merge requests found
Showing
with 1377 additions and 2 deletions
No preview for this file type
......@@ -679,6 +679,8 @@
\end{frame}
\iffalse
\begin{frame}
\showsubsection
......@@ -943,8 +945,6 @@
\end{frame}
\iffalse
\begin{frame}[fragile]
\showsubsection
......
20241009/Ken_Thompson_(sitting)_and_Dennis_Ritchie_at_PDP-11_(2876612463).jpg

1.88 MiB

20241009/Shopping_online_with_bank_card.jpg

1.49 MiB

../common/Zeichen_123.pdf
\ No newline at end of file
"CD_ID";"Albumtitel";"Interpret";"Gründungsjahr";"Erscheinungsjahr";"Track";"Titel"
4711;"Not That Kind";"Anastacia";1999;2000;1;"Not That Kind"
4711;"Not That Kind";"Anastacia";1999;2000;2;"I'm Outta Love"
4711;"Not That Kind";"Anastacia";1999;2000;3;"Cowboys & Kisses"
4712;"Wish You Were Here";"Pink Floyd";1965;1975;1;"Shine On You Crazy Diamond"
4713;"Freak of Nature";"Anastacia";1999;2001;1;"Paid my Dues"
CD_ID Albumtitel Interpret Gründungsjahr Erscheinungsjahr Track Titel
4711 Not That Kind Anastacia 1999 2000 1 Not That Kind
4711 Not That Kind Anastacia 1999 2000 2 I'm Outta Love
4711 Not That Kind Anastacia 1999 2000 3 Cowboys & Kisses
4712 Wish You Were Here Pink Floyd 1965 1975 1 Shine On You Crazy Diamond
4713 Freak of Nature Anastacia 1999 2001 1 Paid my Dues
20241009/computer-arbeitsplaetze-lores.jpg

89.6 KiB

Computergebouw_van_KLM_voor_automatische_boekingsmethode_Corda_in_Amstelveen._,_Bestanddeelnr_923-3365.jpg
\ No newline at end of file
A_Day_in_the_Life_of_a_Wartime_Housewife-_Everyday_Life_in_London,_England,_1941_D2379.jpg
\ No newline at end of file
File added
This diff is collapsed.
File added
% dbs-uebung-20231005.pdf - Exercises on Databases and Information Security
% Copyright (C) 2024 Peter Gerwinski
%
% This document is free software: you can redistribute it and/or
% modify it either under the terms of the Creative Commons
% Attribution-ShareAlike 3.0 License, or under the terms of the
% GNU General Public License as published by the Free Software
% Foundation, either version 3 of the License, or (at your option)
% any later version.
%
% This document is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this document. If not, see <http://www.gnu.org/licenses/>.
%
% You should have received a copy of the Creative Commons
% Attribution-ShareAlike 3.0 Unported License along with this
% document. If not, see <http://creativecommons.org/licenses/>.
% README: 1: Dateien umbenennen, Tabellen bearbeiten
\documentclass[a4paper]{article}
\usepackage{pgscript}
\thispagestyle{empty}
\begin{document}
\thispagestyle{empty}
\section*{Datenbanken und Datensicherheit\\
Übungsaufgaben 1 -- 9.\ Oktober 2024}
\exercise{Dateien umbenennen}
In einem Verzeichnis befinden sich die folgenden Dateien:
\begin{lstlisting}[style=terminal]
$ ¡ls dbs-20241002.*¿
dbs-20241002.aux dbs-20241002.out dbs-20241002.tex
dbs-20241002.log dbs-20241002.pdf dbs-20241002.toc
dbs-20241002.nav dbs-20241002.snm dbs-20241002.vrb
\end{lstlisting}
Beschreiben Sie einen Weg, diese Dateien auf möglichst effiziente und möglichst wenig
fehleranfällige Weise folgendermaßen umzubenennen:
\begin{lstlisting}[style=terminal]
$ ¡ls dbs-20241009.*¿
dbs-20241009.aux dbs-20241009.out dbs-20241009.tex
dbs-20241009.log dbs-20241009.pdf dbs-20241009.toc
dbs-20241009.nav dbs-20241009.snm dbs-20241009.vrb
\end{lstlisting}
Hinweis:\quad\lstinline[style=cmd]{man mmv}
\exercise{Tabellen bearbeiten}
Die Datei \gitfile{dbs}{2024ws/20241008}{cd-sammlung.txt}
enthält die folgende Tabelle in Textform:
\begin{lstlisting}[style=terminal,basicstyle=\footnotesize\ttfamily\color{darkgreen}]
CD_ID Albumtitel Interpret Gründungsjahr Erscheinungsjahr Track Titel
4711 Not That Kind Anastacia 1999 2000 1 Not That Kind
4711 Not That Kind Anastacia 1999 2000 2 I'm Outta Love
4711 Not That Kind Anastacia 1999 2000 3 Cowboys & Kisses
4712 Wish You Were Here Pink Floyd 1965 1975 1 Shine On You Crazy Diamond
4713 Freak of Nature Anastacia 1999 2001 1 Paid my Dues
\end{lstlisting}
Die Datei \gitfile{dbs}{2024ws/20241008}{cd-sammlung.csv}
enthält dieselbe Tabelle als CSV-Datei,
wie man sie z.\,B.\ auch mit Tabellenkalkulationsprogrammen bearbeiten kann:
\begin{lstlisting}[style=terminal,basicstyle=\footnotesize\ttfamily\color{darkgreen}]
"CD_ID";"Albumtitel";"Interpret";"Gründungsjahr";"Erscheinungsjahr";"Track";"Titel"
4711;"Not That Kind";"Anastacia";1999;2000;1;"Not That Kind"
4711;"Not That Kind";"Anastacia";1999;2000;2;"I'm Outta Love"
4711;"Not That Kind";"Anastacia";1999;2000;3;"Cowboys & Kisses"
4712;"Wish You Were Here";"Pink Floyd";1965;1975;1;"Shine On You Crazy Diamond"
4713;"Freak of Nature";"Anastacia";1999;2001;1;"Paid my Dues"
\end{lstlisting}
Extrahieren Sie aus (a) \gitfile{dbs}{2024ws/20241008}{cd-sammlung.txt}
und aus (b) \gitfile{dbs}{2024ws/20241008}{cd-sammlung.csv}
jeweils die dritte Spalte ("`Interpret"').
Bei (b) darf das Ergebnis die Anführungszeichen noch enthalten.
Hinweise:
\begin{itemize}
\item
Wenn Sie in dieser PDF-Datei die o.\,a.\ Dateinamen anklicken, können Sie
die entsprechende Datei von \url{https://gitlab.cvh-server.de/pgerwinski/dbs}
herunterladen.
\item
\lstinline[style=cmd]{man cut}
\end{itemize}
\begin{flushright}
\textit{Viel Erfolg!}
\end{flushright}
\end{document}
../common/logo-hochschule-bochum-cvh-text-v2.pdf
\ No newline at end of file
../common/logo-hochschule-bochum.pdf
\ No newline at end of file
20241009/online-shop-lores.jpg

95.3 KiB

Shopping_online_with_bank_card.jpg
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment