Script started on Wed Nov 5 17:26:07 2025 macbook:logs> echo attendance code 5150 attendance code 5150 macbook:logs> cd ../programs/unix_ch3 macbook:unix_ch3> find . -iname *awk find: p3.awk: unknown primary or operator macbook:unix_ch3> find . -iname "*awk" ./p4.awk ./p5.awk ./p2.awk ./p3.awk macbook:unix_ch3> ls *awk p2.awk p3.awk p4.awk p5.awk macbook:unix_ch3> find . -iname p4.awk p5.awk p2.awk p3.awk find: p5.awk: unknown primary or operator macbook:unix_ch3> cd ~/Desktop/Projects/MCTS_game macbook:MCTS_game> git status On branch master Your branch is up to date with 'origin/master'. Untracked files: (use "git add ..." to include in what will be committed) code/chess/chess code/chess/output_log.txt papers/MCTS-survey copy.pdf nothing added to commit but untracked files present (use "git add" to track) macbook:MCTS_game> git status | awk '{ print "git add "$1 }' git add On git add Your git add git add Untracked git add (use git add code/chess/chess git add code/chess/output_log.txt git add papers/MCTS-survey git add git add nothing macbook:MCTS_game> echo could copy and paste those lines could copy and paste those lines macbook:MCTS_game> which python python not found macbook:MCTS_game> which python3 /Library/Frameworks/Python.framework/Versions/3.11/bin/python3 macbook:MCTS_game> python3 Python 3.11.9 (v3.11.9:de54cf5be3, Apr 2 2024, 07:12:50) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> quit() /Library/Frameworks/Python.framework/Versions/3.11/bin/work/Versions/3.11/bin/ macbook:bin> ls 2to3 pydoc3.11 2to3-3.11 python3 idle3 python3-config idle3.11 python3-intel64 pip3 python3.11 pip3.11 python3.11-config pydoc3 python3.11-intel64 macbook:bin> ls -l total 496 lrwxrwxr-x 1 root admin 9 Oct 23 15:42 2to3 -> 2to3-3.11 -rwxrwxr-x 1 root admin 142 Apr 2 2024 2to3-3.11 lrwxrwxr-x 1 root admin 8 Oct 23 15:42 idle3 -> idle3.11 -rwxrwxr-x 1 root admin 140 Apr 2 2024 idle3.11 -rwxrwxr-x 1 root admin 270 Oct 23 15:42 pip3 -rwxrwxr-x 1 root admin 270 Oct 23 15:42 pip3.11 lrwxrwxr-x 1 root admin 9 Oct 23 15:42 pydoc3 -> pydoc3.11 -rwxrwxr-x 1 root admin 125 Apr 2 2024 pydoc3.11 lrwxrwxr-x 1 root admin 10 Oct 23 15:42 python3 -> python3.11 lrwxrwxr-x 1 root admin 17 Oct 23 15:42 python3-config -> python3.11-config lrwxrwxr-x 1 root admin 18 Oct 23 15:42 python3-intel64 -> python3.11-intel64 -rwxrwxr-x 1 root admin 152624 Apr 2 2024 python3.11 -rwxrwxr-x 1 root admin 2084 Apr 2 2024 python3.11-config -rwxrwxr-x 1 root admin 70544 Apr 2 2024 python3.11-intel64 macbook:bin> macbook:bin> # sudo shutdown -r now zsh: command not found: # macbook:bin> # zsh: command not found: # macbook:bin> cdd macbook:Desktop> cd csc3320_Fall2025/programs/unix_ch3 macbook:unix_ch3> ls *txt example_shell_script.txt git_diff.txt macbook:unix_ch3> more ex4.pl $n = $#ARGV+1; # number of args (beginning 0) print $n, " args: \n"; for ($i = 0; $i < n; $i++) { print "@ARGV[$i]\n"; } # pounds on command line: if ($#ARGV < 0) { print "Specify value in pounds to convert to dollars\n"; exit; } $poundvalue = @ARGV[0]; $dollarvalue = pound2dollars($poundvalue); print "Value in dollars = $dollarvalue\n"; macbook:unix_ch3> sed 's/print/printf/' < ex4.pl $n = $#ARGV+1; # number of args (beginning 0) printf $n, " args: \n"; for ($i = 0; $i < n; $i++) { printf "@ARGV[$i]\n"; } # pounds on command line: if ($#ARGV < 0) { printf "Specify value in pounds to convert to dollars\n"; exit; } $poundvalue = @ARGV[0]; $dollarvalue = pound2dollars($poundvalue); printf "Value in dollars = $dollarvalue\n";% macbook:unix_ch3> sed 's/^/#/' < ex4.pl #$n = $#ARGV+1; # number of args (beginning 0) #print $n, " args: \n"; #for ($i = 0; $i < n; $i++) { # print "@ARGV[$i]\n"; #} ## pounds on command line: #if ($#ARGV < 0) { # print "Specify value in pounds to convert to dollars\n"; # exit; #} #$poundvalue = @ARGV[0]; #$dollarvalue = pound2dollars($poundvalue); #print "Value in dollars = $dollarvalue\n";% macbook:unix_ch3> sed 's/^/#/' < ex4.pl > ex4new macbook:unix_ch3> echo $SHELL /bin/zsh macbook:unix_ch3> cat ~/.zshrc alias mroe="more" alias mv="mv -i" alias date='date +"%A %B %d, %Y, %I:%M %p"' alias cdd="cd ~/Desktop" alias people="cat ~/Desktop/Projects/people.txt" #alias python=/usr/local/bin/python3.11 # %n: Username. # %m: Hostname. # %c: Current working directory (basename). # %~: Current working directory (full path, with home directory abbreviated). PS1='macbook:%1~> ' # source /sw/bin/init.sh #export PATH="$HOME/.diversion/bin:$PATH" export PATH="$HOME/.diversion/bin:$PATH" macbook:unix_ch3> which ls /bin/ls macbook:unix_ch3> which vi /usr/bin/vi macbook:unix_ch3> ls -l /usr/bin/vi lrwxr-xr-x 1 root wheel 3 Aug 16 14:44 /usr/bin/vi -> vim macbook:unix_ch3> ls p?.awk p2.awk p3.awk p4.awk p5.awk macbook:unix_ch3> ls p[123456].awk p2.awk p3.awk p4.awk p5.awk macbook:unix_ch3> ls p[34].awk p3.awk p4.awk macbook:unix_ch3> echo 'ls' ls macbook:unix_ch3> echo `ls` args.pl bash_scripts_lab bool.s dummy2 ex1.pl ex2.pl ex3.pl ex4.pl ex4new ex5.pl example_shell_script.txt future git_diff.txt heredoc_test2 heredoc_test3 loan.pl p2.awk p3.awk p4.awk p5.awk run_args.sh run_perl_loan.sh sed1 sed2 sed3 sort.dat macbook:unix_ch3> myfiles=`ls` macbook:unix_ch3> echo $myfiles args.pl bash_scripts_lab bool.s dummy2 ex1.pl ex2.pl ex3.pl ex4.pl ex4new ex5.pl example_shell_script.txt future git_diff.txt heredoc_test2 heredoc_test3 loan.pl p2.awk p3.awk p4.awk p5.awk run_args.sh run_perl_loan.sh sed1 sed2 sed3 sort.dat macbook:unix_ch3> abc=3 macbook:unix_ch3> echo $abc 3 macbook:unix_ch3> def=hello macbook:unix_ch3> ehco $def zsh: command not found: ehco macbook:unix_ch3> echo $def hello macbook:unix_ch3> echo $myfiles | wc -l 26 macbook:unix_ch3> ls -l p2.awk; cat p2.awk -rw-r--r-- 1 mweeks staff 109 Sep 12 15:21 p2.awk BEGIN { print "Start of file: "} { print $1 " " $6 " " $7 } END { print "End of file", FILENAME }% macbook:unix_ch3> ls *c zsh: no matches found: *c macbook:unix_ch3> cd ../C_ch2 macbook:C_ch2> cat hello.c /* hello world */ #include int main (int argc, char *argv[]) { printf("hello world.\n"); return 0; } macbook:C_ch2> gcc hello.c -o hello && ./hello hello world. macbook:C_ch2> ls document.txt || echo "document.txt not found" ls: document.txt: No such file or directory document.txt not found macbook:C_ch2> echo "Filename is \"file1\". " Filename is "file1". macbook:C_ch2> echo "hello " & ; echo "there" [1] 70782 hello there [1] + done echo "hello " macbook:C_ch2> echo today is `date` today is Wednesday November 05, 2025, 06:36 PM macbook:C_ch2> date; pwd; ls Wednesday November 05, 2025, 06:36 PM /Users/mweeks/Desktop/csc3320_Fall2025/programs/C_ch2 a.out printf_wrong.txt bool_ex1.c random_example.c bool_ex2.c scanf_echo.txt bool_ex3.c scanf_ex1_2024.c bool.c scanf_ex1.c bool.s scanf_ex1b.c booleans.c scanf_ex2_2024.c checkTSize.c scanf_ex3.c conv_to_double.c simpleIO.c conv_to_double2.c strlcat_example.c example_switch.c switch_example.c example_var_types.c test_special.c float2hex.c test.csv for_example.c testchar.c hello testfloat1.c hello_3320.c testfloat2.c hello_parts_c_pgm.c testfloat3.c hello.c testfloat3b.c io_example.c testfrac.c io_example.s type_conv.c io_example2.c typedef.c MATLAB.txt typedef2.c numbers.txt macbook:C_ch2> (date; ls; pwd) > out.txt macbook:C_ch2> tail out.txt testchar.c testfloat1.c testfloat2.c testfloat3.c testfloat3b.c testfrac.c type_conv.c typedef.c typedef2.c /Users/mweeks/Desktop/csc3320_Fall2025/programs/C_ch2 macbook:C_ch2> cd ../unix_ch3 macbook:unix_ch3> cd ../unix_ch4 macbook:unix_ch4> ls *sh quote_vs_noquote.bash script3.csh script2.csh macbook:unix_ch4> cat script2.csh #!/bin/csh echo the name of this file is $0 echo the first argument is $1 echo the list of all arguments is $* echo this script places the date into a temporary file called $1.$$ date > $1.$$ ls -l $1.$$ rm $1.$$ macbook:unix_ch4> ./script2.csh the name of this file is ./script2.csh the first argument is the list of all arguments is this script places the date into a temporary file called .71131 -rw-r--r-- 1 mweeks staff 29 Nov 5 18:39 .71131 macbook:unix_ch4> (cd ../unix_ch3 ; ls p?.awk ) p2.awk p3.awk p4.awk p5.awk macbook:unix_ch4> ls p?.awk zsh: no matches found: p?.awk macbook:unix_ch4> exit Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. Deleting expired sessions... 9 completed. Script done on Wed Nov 5 18:44:14 2025