Last login: Tue Nov 13 15:14:24 on ttys022
Math-Tuttle-OSX:~ smtuttle$ cd humboldt/
Math-Tuttle-OSX:humboldt smtuttle$ cd f12cs279
Math-Tuttle-OSX:f12cs279 smtuttle$ cd 279lectures/
Math-Tuttle-OSX:279lectures smtuttle$ cd 279lect13-1
Math-Tuttle-OSX:279lect13-1 smtuttle$ call-funct-that-exits.sh
about to call funct_that_exits
I was called with arguments: a boo cadre
I'm about to exit!
Math-Tuttle-OSX:279lect13-1 smtuttle$ echo $?
1
Math-Tuttle-OSX:279lect13-1 smtuttle$ call-funct-that-exits.sh
about to call funct_that_exits
I was called with arguments: a boo cadre
I'm about to exit!
Math-Tuttle-OSX:279lect13-1 smtuttle$ echo $?
42
Math-Tuttle-OSX:279lect13-1 smtuttle$ call-funct-that-returns.sh
about to call funct_that_returns
I was called with arguments: a boo cadre
I'm about to return!
after call of funct_that_returns - and exit status is: 13
Math-Tuttle-OSX:279lect13-1 smtuttle$ call-funct-that-returns.sh
about to call funct_that_returns
I was called with arguments: a boo cadre
I'm about to return!
./funct-return.sh: line 6: return: boo: numeric argument required
after call of funct_that_returns - and exit status is: 255
Math-Tuttle-OSX:279lect13-1 smtuttle$ echo3.sh
moooomoooomoooo
trio is lalala
Math-Tuttle-OSX:279lect13-1 smtuttle$ source echo3.sh
moooomoooomoooo
trio is lalala
Math-Tuttle-OSX:279lect13-1 smtuttle$ echo3 dillo | wc -c
16
Math-Tuttle-OSX:279lect13-1 smtuttle$ chmod 700 factorial.sh
Math-Tuttle-OSX:279lect13-1 smtuttle$ factorial.sh
Enter a number:
3
6
Math-Tuttle-OSX:279lect13-1 smtuttle$ factorial.sh
Enter a number:
1
1
Math-Tuttle-OSX:279lect13-1 smtuttle$ factorial.sh
Enter a number:
-13
1
Math-Tuttle-OSX:279lect13-1 smtuttle$ factorial.sh
Enter a number:
10
3628800
Math-Tuttle-OSX:279lect13-1 smtuttle$ factorial.sh
Enter a number:
25
7034535277573963776
Math-Tuttle-OSX:279lect13-1 smtuttle$ factorial.sh
Enter a number:
50
-3258495067890909184
Math-Tuttle-OSX:279lect13-1 smtuttle$ expr 3+4
3+4
Math-Tuttle-OSX:279lect13-1 smtuttle$ expr 3 \+ 4
7
Math-Tuttle-OSX:279lect13-1 smtuttle$ expr 3 ^ 4
expr: syntax error
Math-Tuttle-OSX:279lect13-1 smtuttle$ expr 3 \^ 4
expr: syntax error
Math-Tuttle-OSX:279lect13-1 smtuttle$ expr 3^4
3^4
Math-Tuttle-OSX:279lect13-1 smtuttle$ expr 3\^4
3^4
Math-Tuttle-OSX:279lect13-1 smtuttle$ expr 3 \*\* 4
expr: syntax error
Math-Tuttle-OSX:279lect13-1 smtuttle$ expr 3 \** 4
expr: syntax error
Math-Tuttle-OSX:279lect13-1 smtuttle$ bc 3 + 5
File 3 is unavailable.
Math-Tuttle-OSX:279lect13-1 smtuttle$ bc
bc 1.06
Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
3 ** 4
(standard_in) 1: parse error
3 ^ 4
81
^D
Math-Tuttle-OSX:279lect13-1 smtuttle$ sftp st10@nrs-projects.humboldt.edu
st10@nrs-projects.humboldt.edu's password:
Connected to nrs-projects.humboldt.edu.
sftp> ?
Available commands:
bye Quit sftp
cd path Change remote directory to 'path'
chgrp grp path Change group of file 'path' to 'grp'
chmod mode path Change permissions of file 'path' to 'mode'
chown own path Change owner of file 'path' to 'own'
df [-hi] [path] Display statistics for current directory or
filesystem containing 'path'
exit Quit sftp
get [-Ppr] remote [local] Download file
help Display this help text
lcd path Change local directory to 'path'
lls [ls-options [path]] Display local directory listing
lmkdir path Create local directory
ln oldpath newpath Symlink remote file
lpwd Print local working directory
ls [-1afhlnrSt] [path] Display remote directory listing
lumask umask Set local umask to 'umask'
mkdir path Create remote directory
progress Toggle display of progress meter
put [-Ppr] local [remote] Upload file
pwd Display remote working directory
quit Quit sftp
rename oldpath newpath Rename remote file
rm path Delete remote file
rmdir path Remove remote directory
symlink oldpath newpath Symlink remote file
version Show SFTP version
!command Execute 'command' in local shell
! Escape to local shell
? Synonym for help
sftp>
sftp> mkdir 279lect13-1
sftp> cd 279lect13-1
sftp> pwd
Remote working directory: /home/st10/279lect13-1
sftp> lpwd
Local working directory: /Users/smtuttle/humboldt/f12cs279/279lectures/279lect13-1
sftp> put echo3.sh
Uploading echo3.sh to /home/st10/279lect13-1/echo3.sh
echo3.sh 100% 152 0.2KB/s 00:00
sftp> ls
echo3.sh
sftp> pwd
Remote working directory: /home/st10/279lect13-1
sftp> lmkdir looky
sftp> lcd looky
sftp> lpwd
Local working directory: /Users/smtuttle/humboldt/f12cs279/279lectures/279lect13-1/looky
sftp> lls
sftp> get echo3.sh DIFF-NAMEecho3.sh
Fetching /home/st10/279lect13-1/echo3.sh to DIFF-NAMEecho3.sh
/home/st10/279lect13-1/echo3.sh 100% 152 0.2KB/s 00:00
sftp> lls
DIFF-NAMEecho3.sh