From e62fc1f4bd9bccea2c81328315a07c77aa22ef59 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Sat, 7 Nov 2020 01:21:18 +0200 Subject: [PATCH] Week 9/10: Assignment - Profiles, Prompts, Jobs, Directories, Command Lines, and Variables --- week-10/Llewellyn_week10.txt | 5 + week-10/found | 28 +++ week-10/found.errs | 0 week-10/recorded_llewellyn_week10.log | 249 ++++++++++++++++++++++++++ week-10/test.sh | 5 + week-10/wildcards/ABC | 0 week-10/wildcards/ABc3 | 0 week-10/wildcards/AbC | 0 week-10/wildcards/a1 | 0 week-10/wildcards/a12 | 0 week-10/wildcards/a2 | 0 week-10/wildcards/a3 | 0 week-10/wildcards/ab | 0 week-10/wildcards/abc | 0 week-10/wildcards/all | 0 week-10/wildcards/ba | 0 week-10/wildcards/ba.1 | 0 week-10/wildcards/ba.2 | 0 week-10/wildcards/filex | 0 week-10/wildcards/filey | 0 week-10/wildcards/found | 2 + week-10/wildcards/found.errs | 0 week-10/wildcards/lsfile | 18 ++ 23 files changed, 307 insertions(+) create mode 100755 week-10/Llewellyn_week10.txt create mode 100644 week-10/found create mode 100644 week-10/found.errs create mode 100755 week-10/recorded_llewellyn_week10.log create mode 100755 week-10/test.sh create mode 100644 week-10/wildcards/ABC create mode 100644 week-10/wildcards/ABc3 create mode 100644 week-10/wildcards/AbC create mode 100644 week-10/wildcards/a1 create mode 100644 week-10/wildcards/a12 create mode 100644 week-10/wildcards/a2 create mode 100644 week-10/wildcards/a3 create mode 100644 week-10/wildcards/ab create mode 100644 week-10/wildcards/abc create mode 100644 week-10/wildcards/all create mode 100644 week-10/wildcards/ba create mode 100644 week-10/wildcards/ba.1 create mode 100644 week-10/wildcards/ba.2 create mode 100644 week-10/wildcards/filex create mode 100644 week-10/wildcards/filey create mode 100644 week-10/wildcards/found create mode 100644 week-10/wildcards/found.errs create mode 100644 week-10/wildcards/lsfile diff --git a/week-10/Llewellyn_week10.txt b/week-10/Llewellyn_week10.txt new file mode 100755 index 0000000..4bb5f58 --- /dev/null +++ b/week-10/Llewellyn_week10.txt @@ -0,0 +1,5 @@ +# Week 9/10: Assignment - Prompts, Jobs, Directories, Command Lines, and Variables +# by Llewellyn van der Merwe + +1) The /etc/profile and ~/.bash_profile is used to run commands that are profile related. The /etc/profile is the global default for all profiles and ~/.bash_profile is the current users overide. So quoting directly from the BASH man page: + When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file ex‐ists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behavior. diff --git a/week-10/found b/week-10/found new file mode 100644 index 0000000..0381af8 --- /dev/null +++ b/week-10/found @@ -0,0 +1,28 @@ +../ +../1_Week7_1 +../1_Week7_1/.idea +../1_Week1_1 +../2_Week15_1 +../2_Week8_1 +../1_Week2_1 +../2_Week14_1 +../2_Week11_1 +../2_Week12_1 +../1_Week4_1 +../1_Week3_1 +../1_Week3_1/.idea +../1_Week3_1/cmake-build-debug +../1_Week3_1/cmake-build-debug/CMakeFiles +../1_Week3_1/cmake-build-debug/CMakeFiles/CMakeTmp +../1_Week3_1/cmake-build-debug/CMakeFiles/3.16.5 +../1_Week3_1/cmake-build-debug/CMakeFiles/3.16.5/CompilerIdC +../1_Week3_1/cmake-build-debug/CMakeFiles/3.16.5/CompilerIdC/tmp +../1_Week3_1/cmake-build-debug/CMakeFiles/1_Week3_1.dir +../1_Week6_1 +../2_Week16_1 +../2_Week17_1 +../1_Week5_1 +../2_Week10_1 +../2_Week10_1/wildcards +../2_Week9_1 +../2_Week13_1 diff --git a/week-10/found.errs b/week-10/found.errs new file mode 100644 index 0000000..e69de29 diff --git a/week-10/recorded_llewellyn_week10.log b/week-10/recorded_llewellyn_week10.log new file mode 100755 index 0000000..67daf2c --- /dev/null +++ b/week-10/recorded_llewellyn_week10.log @@ -0,0 +1,249 @@ +Script started on 2020-11-09 06:52:00+02:00 [TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="203" LINES="48"] +]0;llewellyn@micron: ~/Desktop/Linux Programming I/2_Week10_1llewellyn@micron:~/Desktop/Linux Programming I/2_Week10_1$ nano ~/.bash_profile +[?2004h[?1049h(B[?7h[?1h=[?1h=[?25l(B(B[ Reading... ](B(B[ Read 12 lines ](B(B GNU nano 4.8 /home/llewellyn/.bash_profile (B +(B^G(B Get Help (B^O(B Write Out (B^W(B Where Is (B^K(B Cut Text (B^J(B Justify(B^C(B Cur Pos(BM-U(B Undo(BM-A(B Mark Text (BM-](B To Bracket (BM-Q(B Previous (B^B(B Back(B^◀(B Prev Word +(B^X(B Exit(B^R(B Read File (B^\(B Replace(B^U(B Paste Text (B^T(B To Spell (B^_(B Go To Line (BM-E(B Redo(BM-6(B Copy Text (B^Q(B Where Was (BM-W(B Next(B^F(B Forwards (B^▶(B Next Word +# Set custom terminal prompt (fun) +export(B PS1=(B"\[\e[1;33m\]\[\016\]vdm\[\017\]-(\[\e[34;1m\]\u@\h\[\e[1;33m\])-(\[\e[34;1m\]\j\[\e[1;33m\])-(\[\e[34;1m\]\@ \d\[\e[1;33m\])->\[\e[1;33m\]\n\[\016\]path\[\017\]-(\[\[\e[32;1m\]\w\[\e[1;33m\](B>(B# export PS1=(B"[\t \w] " +(B# set a greeting to the USER +(Becho(B (B"Welcome $USER" +(B# add user home path +case(B (B":${PATH:=$HOME}:"(B in(B*:(B"$HOME"(B:(B*)(B ;;(B*)(B PATH=(B"$HOME:$PATH"(B ;; +esac +# add erase to the Backspace +(Bstty erase ^? +[?12l[?25h[?25l[?12l[?25h[?1049l +[?1l>[?2004l]0;llewellyn@micron: ~/Desktop/Linux Programming I/2_Week10_1llewellyn@micron:~/Desktop/Linux Programming I/2_Week10_1$ +]0;llewellyn@micron: ~/Desktop/Linux Programming I/2_Week10_1llewellyn@micron:~/Desktop/Linux Programming I/2_Week10_1$ +]0;llewellyn@micron: ~/Desktop/Linux Programming I/2_Week10_1llewellyn@micron:~/Desktop/Linux Programming I/2_Week10_1$ source ~/.bash_profile +Welcome llewellyn +vdm-(llewellyn@micron)-(0)-(06:53 AM Mon Nov 09)-> + +path-(~/Desktop/Linux Programming I/2_Week10_1)-> + +details-(7 files, 352Kb)-> + + $  + $  + $  + $  + $  + $  + $  + $  + $  + $  + $ nano ~/.pbash_profile +[?2004h[?1049h(B[?7h[?1h=[?1h=[?25l(B(B[ Reading... ](B(B[ Read 12 lines ](B(B GNU nano 4.8 /home/llewellyn/.bash_profile (B +(B^G(B Get Help (B^O(B Write Out (B^W(B Where Is (B^K(B Cut Text (B^J(B Justify (B^C(B Cur Pos (BM-U(B Undo +(B^X(B Exit(B^R(B Read File (B^\(B Replace (B^U(B Paste Text (B^T(B To Spell (B^_(B Go To Line (BM-E(B Redo +# Set custom terminal prompt (fun) +export(B PS1=(B"\[\e[1;33m\]\[\016\]vdm\[\017\]-(\[\e[34;1m\]\u@\h\[\e[1;33m\])-(\[\e[34;1m\]\j\[\e[1;33(B>(B# export PS1=(B"[\t \w] " +(B# set a greeting to the USER +(Becho(B (B"Welcome $USER" +(B# add user home path +case(B (B":${PATH:=$HOME}:"(B in(B*:(B"$HOME"(B:(B*)(B ;;(B*)(B PATH=(B"$HOME:$PATH"(B ;; +esac +# add erase to the Backspace +(Bstty erase ^? +[?12l[?25h[?25l[?12l[?25h[?25l(BModified(B +#export PS1=(B"\[\e[1;33m\]\[\016\]vdm\[\017\]-(\[\e[34;1m\]\u@\h\[\e[1;33m\])-(\[\e[34;1m\]\j\[\e[1; +(B[?12l[?25h[?25l export PS1=(B"\[\e[1;33m\]\[\016\]vdm\[\017\]-(\[\e[34;1m\]\u@\h\[\e[1;33m\])-(\[\e[34;1m\]\j\[\e[1;(B[?12l[?25h[?25l[?12l[?25h[?25l[?12l[?25h[?25lexport(B PS1=(B +[?12l[?25h[?25l +(B<(Bal //')b\[\e[1;33m\])->\[\e[1;33m\]\n\[\016\] \[\017\]$ \[\e[0m\]"(Bexport PS1=(B"[\t \w] "(B[?12l[?25h[?25l78 +M# export PS1=(B"\[\e[1;33m\]\[\016\]vdm\[\017\]-(\[\e[34;1m\]\u@\h\[\e[1;33m\])-(\[\e[34;1m\]\j\[\e[1;(B>(Bexport(B PS1=(B"[\t \w] " +(B[?12l[?25h[?25l(BSave modified buffer?  Y(B Yes +(B N(B No  (B^C(B Cancel[?12l[?25h[?25l +(B^G(B Get Help(BM-D(B DOS Format(BM-A(B Append(BM-B(B Backup File +(B^C(B Cancel (BM-M(B Mac Format(BM-P(B Prefix(B^T(B To Files +(BFile Name to Write: /home/llewellyn/.bash_profile +(B[?12l[?25h[?25l (B[ Writing... ](B(B (B(B[ Wrote 12 lines ](B +[?12l[?25h[?1049l +[?1l>[?2004lvdm-(llewellyn@micron)-(0)-(06:56 AM Mon Nov 09)-> + +path-(~/Desktop/Linux Programming I/2_Week10_1)-> + +details-(7 files, 356Kb)-> + + $ nano ~/.bash_profile +[2@source +Welcome llewellyn +[06:56:27 ~/Desktop/Linux Programming I/2_Week10_1] jobs -r +[06:57:44 ~/Desktop/Linux Programming I/2_Week10_1] jobs -rs +[06:57:51 ~/Desktop/Linux Programming I/2_Week10_1] mkdir wildcards +[06:58:43 ~/Desktop/Linux Programming I/2_Week10_1] cd wildcards/ +[06:58:46 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] touch ab abc a1 a2 a3 all a12 ba ba.1 ba.2 filex filey AbC ABC ABc3 abc +[06:58:57 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] ls -la +total 8 +drwxrwx--- 1 root vboxsf 4096 Nov 9 06:58 . +drwxrwx--- 1 root vboxsf 4096 Nov 9 06:58 .. +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 a1 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 a12 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 a2 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 a3 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ab +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 abc +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 AbC +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ABC +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ABc3 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 all +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ba +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ba.1 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ba.2 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 filex +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 filey +[06:59:02 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] ls -la a* +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 a1 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 a12 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 a2 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 a3 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ab +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 abc +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 all +[06:59:19 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] ls -la *[[:digit:]] +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 a1 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 a12 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 a2 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 a3 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ABc3 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ba.1 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ba.2 +[06:59:27 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] ls -la [A-a]* +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 a1 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 a12 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 a2 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 a3 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ab +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 abc +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 AbC +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ABC +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ABc3 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 all +[06:59:34 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] ls -la *\.[0-9] +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ba.1 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ba.2 +[06:59:41 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] ls -la *[x-y] +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 filex +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 filey +[06:59:48 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] ls -la {*[a-z],*[A-Z],*[[:digit:]]} +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 a1 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 a12 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 a2 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 a3 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ab +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 abc +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 AbC +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ABC +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ABc3 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 all +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ba +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ba.1 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 ba.2 +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 filex +-rwxrwx--- 1 root vboxsf 0 Nov 9 06:58 filey +[06:59:56 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] ls > lsfile +[07:00:12 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] date >> lsfile +[07:00:19 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] who >> lsfile +[07:00:26 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] cat lsfile +a1 +a12 +a2 +a3 +ab +abc +AbC +ABC +ABc3 +all +ba +ba.1 +ba.2 +filex +filey +lsfile +Mon 09 Nov 2020 07:00:19 AM CAT +llewellyn :0 2020-11-09 03:50 (:0) +[07:00:32 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] find ../ -type d 1> found 2> found.errs +s +[07:00:51 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] set dogs cats birds fish +[07:01:15 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] echo “$@” +“dogs cats birds fish” +[07:01:27 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] echo “$@”$@"$@" +dogs cats birds fish +[07:01:35 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] $3e$3c$3h$3o$3 $3 +birds +[07:01:45 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] echo '$#""$#"$#" $#""$#" +4 +[07:02:04 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] set -- +[07:02:08 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] set --echo "$#"$3"$@" + +[07:02:19 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] echo "$@"set --echo "$#"$3"$@"$3"$#" +0 +[07:02:25 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] printenv +SHELL=/bin/bash +SESSION_MANAGER=local/micron:@/tmp/.ICE-unix/1175,unix/micron:/tmp/.ICE-unix/1175 +QT_ACCESSIBILITY=1 +COLORTERM=truecolor +XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg +XDG_MENU_PREFIX=gnome- +GNOME_DESKTOP_SESSION_ID=this-is-deprecated +LANGUAGE=en_GB:en +LC_ADDRESS=en_US.UTF-8 +GNOME_SHELL_SESSION_MODE=ubuntu +LC_NAME=en_US.UTF-8 +SSH_AUTH_SOCK=/run/user/1000/keyring/ssh +XMODIFIERS=@im=ibus +DESKTOP_SESSION=ubuntu +LC_MONETARY=en_US.UTF-8 +SSH_AGENT_PID=1136 +GTK_MODULES=gail:atk-bridge +DBUS_STARTER_BUS_TYPE=session +PWD=/home/llewellyn/Desktop/Linux Programming I/2_Week10_1/wildcards +XDG_SESSION_DESKTOP=ubuntu +LOGNAME=llewellyn +XDG_SESSION_TYPE=x11 +GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 +XAUTHORITY=/run/user/1000/gdm/Xauthority +WINDOWPATH=2 +HOME=/home/llewellyn +USERNAME=llewellyn +IM_CONFIG_PHASE=1 +LANG=en_GB.UTF-8 +LC_PAPER=en_US.UTF-8 +LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36: +XDG_CURRENT_DESKTOP=ubuntu:GNOME +VTE_VERSION=6003 +GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/6347df74_575c_4d54_b192_5e2927517eb3 +INVOCATION_ID=641ab716fe334ae2b6ce65b9ab3494ea +MANAGERPID=910 +LESSCLOSE=/usr/bin/lesspipe %s %s +XDG_SESSION_CLASS=user +LC_IDENTIFICATION=en_US.UTF-8 +TERM=xterm-256color +LESSOPEN=| /usr/bin/lesspipe %s +USER=llewellyn +GNOME_TERMINAL_SERVICE=:1.73 +DISPLAY=:0 +SHLVL=2 +LC_TELEPHONE=en_US.UTF-8 +QT_IM_MODULE=ibus +LC_MEASUREMENT=en_US.UTF-8 +PAPERSIZE=letter +DBUS_STARTER_ADDRESS=unix:path=/run/user/1000/bus,guid=e647075f9e70ee9cf2b5ec415fa8a070 +XDG_RUNTIME_DIR=/run/user/1000 +PS1=[\t \w] +LC_TIME=en_US.UTF-8 +JOURNAL_STREAM=9:26661 +XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop +PATH=/home/llewellyn:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin +GDMSESSION=ubuntu +DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus,guid=e647075f9e70ee9cf2b5ec415fa8a070 +LC_NUMERIC=en_US.UTF-8 +_=/usr/bin/printenv +OLDPWD=/home/llewellyn/Desktop/Linux Programming I/2_Week10_1 +[07:02:34 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] CITY="Windhoek" +[07:02:52 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] export CITY +[07:03:03 ~/Desktop/Linux Programming I/2_Week10_1/wildcards] exit +exit + +Script done on 2020-11-09 07:03:51+02:00 [COMMAND_EXIT_CODE="0"] diff --git a/week-10/test.sh b/week-10/test.sh new file mode 100755 index 0000000..942df27 --- /dev/null +++ b/week-10/test.sh @@ -0,0 +1,5 @@ +#!/bin/bash +echo -n '$USER=' # -n option stops echo from breaking the line +echo "$USER" +echo "\$USER=$USER" # this does the same thing as the first two lines + diff --git a/week-10/wildcards/ABC b/week-10/wildcards/ABC new file mode 100644 index 0000000..e69de29 diff --git a/week-10/wildcards/ABc3 b/week-10/wildcards/ABc3 new file mode 100644 index 0000000..e69de29 diff --git a/week-10/wildcards/AbC b/week-10/wildcards/AbC new file mode 100644 index 0000000..e69de29 diff --git a/week-10/wildcards/a1 b/week-10/wildcards/a1 new file mode 100644 index 0000000..e69de29 diff --git a/week-10/wildcards/a12 b/week-10/wildcards/a12 new file mode 100644 index 0000000..e69de29 diff --git a/week-10/wildcards/a2 b/week-10/wildcards/a2 new file mode 100644 index 0000000..e69de29 diff --git a/week-10/wildcards/a3 b/week-10/wildcards/a3 new file mode 100644 index 0000000..e69de29 diff --git a/week-10/wildcards/ab b/week-10/wildcards/ab new file mode 100644 index 0000000..e69de29 diff --git a/week-10/wildcards/abc b/week-10/wildcards/abc new file mode 100644 index 0000000..e69de29 diff --git a/week-10/wildcards/all b/week-10/wildcards/all new file mode 100644 index 0000000..e69de29 diff --git a/week-10/wildcards/ba b/week-10/wildcards/ba new file mode 100644 index 0000000..e69de29 diff --git a/week-10/wildcards/ba.1 b/week-10/wildcards/ba.1 new file mode 100644 index 0000000..e69de29 diff --git a/week-10/wildcards/ba.2 b/week-10/wildcards/ba.2 new file mode 100644 index 0000000..e69de29 diff --git a/week-10/wildcards/filex b/week-10/wildcards/filex new file mode 100644 index 0000000..e69de29 diff --git a/week-10/wildcards/filey b/week-10/wildcards/filey new file mode 100644 index 0000000..e69de29 diff --git a/week-10/wildcards/found b/week-10/wildcards/found new file mode 100644 index 0000000..ae5271f --- /dev/null +++ b/week-10/wildcards/found @@ -0,0 +1,2 @@ +../ +../wildcards diff --git a/week-10/wildcards/found.errs b/week-10/wildcards/found.errs new file mode 100644 index 0000000..e69de29 diff --git a/week-10/wildcards/lsfile b/week-10/wildcards/lsfile new file mode 100644 index 0000000..d1d2bf9 --- /dev/null +++ b/week-10/wildcards/lsfile @@ -0,0 +1,18 @@ +a1 +a12 +a2 +a3 +ab +abc +AbC +ABC +ABc3 +all +ba +ba.1 +ba.2 +filex +filey +lsfile +Mon 09 Nov 2020 07:00:19 AM CAT +llewellyn :0 2020-11-09 03:50 (:0)