Commit 358e3e2d authored by Mihai's avatar Mihai

Add introduction practical

parent 25fbfb50
\documentclass{article}
\usepackage{fullpage}
\usepackage{listings}
\usepackage{courier}
\usepackage{hyperref}
\usepackage{minted}
\usepackage{tikz}
\usepackage[many]{tcolorbox}
\usemintedstyle{bw}
\newenvironment{terminal}
{\begin{tcolorbox}[title=Example,
title filled=false,
enhanced,
colback=white,
drop small lifted shadow,
boxrule=0.1mm,
left=0.1cm,
arc=0mm,
colframe=gray]}
{\end{tcolorbox}
}
\lstset{basicstyle=\bf\ttfamily,breaklines=true}
\frenchspacing
\setlength{\parindent}{0pt}
\pagestyle{empty}
\renewcommand\_{\textunderscore\,}
\let\tempitemize=\itemize
\renewcommand\itemize{
\vspace{-5pt}
\tempitemize
\setlength{\itemsep}{0pt}
}
\let\tempenditemize=\enditemize
\renewcommand\enditemize{
\tempenditemize
}
\title{Scripting for Life Science Researchers\\
{\large Introduction Practical}}
\date{}
\begin{document}
\maketitle
\thispagestyle{empty}
\vspace{-1.6cm}
\section*{Setup}
\begin{itemize}
\item Download and use putty and the provided credentials to log in to the
education server which has the IP address \textbf{145.88.35.11}.
\item Execute ``\lstinline{git clone git@git.lumc.nl:courses/scripting-practical.git}''
to clone the repository located at \url{https://git.lumc.nl/courses/scripting-practical} in your home.
\end{itemize}
\smallskip
\section*{Exercises}
\section{Number of machine users}
Get an estimation on the number of user accounts on the education server.
\section{Simple data processing}
Change your working directory to ``$\sim$/scripting-practical/introduction``.
Note that we will next use paths relative to this location. Some information on
the commands that you can make use of for this exercise can be found in the
\lstinline{README.md} file.
\subsection*{Put things in order}
\begin{itemize}
\item Create a file named \lstinline{world.capitals} that contains the information
present in the \lstinline{.capitals} files sorted according to the continent.
\item Remove all the previous \lstinline{.capitals} files (do not remove the newly
created \lstinline{world.capitals} file!).
\end{itemize}
\subsection*{Largest/smallest city}
Print the cities with the largest/smallest population from the \lstinline{cities.population} file.
\subsection*{Europe}
\begin{itemize}
\item Create a new directory \lstinline{europe}.
\item Create a new file \lstinline{europe.capitals} inside the
\lstinline{europe} directory that contains only european country names and
their capitals (the continent name for each country should not be present in
the new \lstinline{europe/europe.capitals} file).
\item Add another file \lstinline{europe/cities.population} that contains the
european cities and their population from the \lstinline{cities.population} file.
\end{itemize}
\subsubsection*{The Netherlands}
\begin{itemize}
\item What is the largest city in The Netherlands by population present in the
\lstinline{cities.population} file.
\item Create a new directory \lstinline{europe/the_netherlands}.
\item Create a new file \lstinline{europe/the_netherlands/summary.txt} that
contains information about The Netherlands, such as the capital name and
the dutch cities present in \lstinline{cities.population} and their population.
\end{itemize}
\end{document}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment