Skip to content

Commit 0ece388

Browse files
authored
Merge pull request #15 from nushackers/sai/update-scripting-slides
2 parents 6136603 + dd3ee17 commit 0ece388

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed
48.1 KB
Binary file not shown.

shell-scripting/shell-scripting.tex

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
\setminted[bash]{fontsize=\small, tabsize=2, breaklines}
4444

4545
\title{Hacker Tools: \\Shell \& Scripting}
46-
\author{Taufiq}
47-
\date{10 Apr 2025 \\ Slides at \url{https://hckr.cc/ht-shell-slides} \\ (Materials developed by Julius)}
46+
\author{Sai}
47+
\date{9 Sep 2025 \\ Slides at \url{https://hckr.cc/ht-shell-slides} \\ (Materials developed by Julius)}
4848

4949
\begin{document}
5050

@@ -72,9 +72,9 @@ \subsection{}
7272
\end{frame}
7373

7474
\begin{frame}{About Me}
75-
Hi! I'm Taufiq.
75+
Hi! I'm Sai.
7676

77-
I'm a Year 3 Computer Science Undergraduate and I like music!
77+
I'm a Year 2 Computer Science Undergraduate and I like playing video games!
7878
% I also enjoy being awesome
7979

8080
I do watch anime.
@@ -92,11 +92,11 @@ \subsection{}
9292
\begin{frame}{Required Software}
9393
Unix-like environment, either one of these:
9494
\begin{itemize}
95-
\item Linux (you're good if you attended and installed Linux during our Linux Install Fest last week)
95+
\item Linux
9696
\item macOS\footnote{Open Terminal, and run \mintinline{bash}{xcode-select --install} first}
9797
\item BSD
9898
\item Other Unix-like OS'es (Minix, Solaris, AIX, HP-UX, etc.)
99-
\item WSL (Windows Subsystem for Linux) should also be alright, but no guarantee
99+
\item WSL (Windows Subsystem for Linux)
100100
\end{itemize}
101101
\end{frame}
102102

@@ -201,7 +201,7 @@ \subsection{Introduction}
201201
echo something
202202
\end{minted}
203203
\begin{itemize}
204-
\item Open an editor (for beginner, \mintinline{bash}{nano} is recommended), save the script as \texttt{example-script}
204+
\item Open an editor (for beginners, \mintinline{bash}{nano/vim} is recommended), save the script as \texttt{example-script}
205205
\item On your shell, run \mintinline{bash}{chmod +x example-script}
206206
\item You can run your script as \mintinline{bash}{./example-script}
207207
\end{itemize}
@@ -279,8 +279,9 @@ \subsection{Introduction}
279279

280280
\subsection{Shell Syntax}
281281
\begin{frame}[fragile]{Running a command}
282-
\begin{minted}{bash}echo Hello
283-
\end{minted}
282+
\begin{minted}{bash}
283+
echo Hello
284+
\end{minted}
284285
\begin{itemize}
285286
\item \mintinline{bash}{COMMAND ARG1 ARG2 ARG3}
286287
\end{itemize}
@@ -304,6 +305,7 @@ \subsection{Shell Syntax}
304305
\begin{itemize}
305306
\item \mintinline{bash}{$?}: get exit code of the previous command %$
306307
\item \mintinline{bash}{$1} to \mintinline{bash}{$9}: arguments to a script %$
308+
\item \mintinline{bash}{$10}...: even more arguments to a script %$
307309
\item \mintinline{bash}{$0}: name of the script itself %$
308310
\item \mintinline{bash}{$#}: number of arguments %$
309311
\item \mintinline{bash}{$$}: process ID of current shell %$

0 commit comments

Comments
 (0)