Script started on Fri 19 May 2017 03:17:39 PM MDT
azaghal@Nogrod:~/session-1$ asciinema rec --max-wait=2 ~/the-unix-shell.json
~ Asciicast recording started.
~ Hit Ctrl-D or type "exit" to finish.
azaghal@Nogrod:~/session-1$ clear
azaghal@Nogrod:~/session-1$ pwd
/home/azaghal/session-1
azaghal@Nogrod:~/session-1$ pwd
/home/azaghal/session-1
azaghal@Nogrod:~/session-1$ ls
Automation  data-shell  Python_Visualization
azaghal@Nogrod:~/session-1$ cd data-shell/
azaghal@Nogrod:~/session-1/data-shell$ ls
creatures  Desktop    nano.save           notes.txt  solar.pdf  writing
data       molecules  north-pacific-gyre  pizza.cfg  thesis
azaghal@Nogrod:~/session-1/data-shell$ cd data
azaghal@Nogrod:~/session-1/data-shell/data$ ls
amino-acids.txt  animals.txt  morse.txt  planets.txt  sunspot.txt
animal-counts    elements     pdb        salmon.txt
azaghal@Nogrod:~/session-1/data-shell/data$ c
amino-acids.txt  animals.txt  morse.txt  planets.txt  sunspot.txt
animal-counts    elements     pdb        salmon.txt
azaghal@Nogrod:~/session-1/data-shell/data$ cd ..
azaghal@Nogrod:~/session-1/data-shell$ ls
creatures  Desktop    nano.save           notes.txt  solar.pdf  writing
data       molecules  north-pacific-gyre  pizza.cfg  thesis
azaghal@Nogrod:~/session-1/data-shell$ cd north-pacific-gyre/
azaghal@Nogrod:~/session-1/data-shell/north-pacific-gyre$ ls
2012-07-03
azaghal@Nogrod:~/session-1/data-shell/north-pacific-gyre$ cd 2012-07-03/
azaghal@Nogrod:~/session-1/data-shell/north-pacific-gyre/2012-07-03$ ls
do-stats.sh     NENE01843A.txt  NENE02043A.txt        stats-NENE01843A.txt
goodiff         NENE01843B.txt  NENE02043B.txt        stats-NENE01843B.txt
goostats        NENE01971Z.txt  stats-datafile        stats-NENE01978A.txt
NENE01729A.txt  NENE01978A.txt  stats-NENE01729A.txt  stats-NENE01978B.txt
NENE01729B.txt  NENE01978B.txt  stats-NENE01729B.txt  stats-NENE02018B.txt
NENE01736A.txt  NENE02018B.txt  stats-NENE01736A.txt  stats-NENE02040A.txt
NENE01751A.txt  NENE02040A.txt  stats-NENE01751A.txt  stats-NENE02040B.txt
NENE01751B.txt  NENE02040B.txt  stats-NENE01751B.txt  stats-NENE02043A.txt
NENE01812A.txt  NENE02040Z.txt  stats-NENE01812A.txt  stats-NENE02043B.txt
azaghal@Nogrod:~/session-1/data-shell/north-pacific-gyre/2012-07-03$ pwd
/home/azaghal/session-1/data-shell/north-pacific-gyre/2012-07-03
azaghal@Nogrod:~/session-1/data-shell/north-pacific-gyre/2012-07-03$ cd /home/azaghal/see
azaghal@Nogrod:~/session-1/data-shell$ pwd
/home/azaghal/session-1/data-shell
azaghal@Nogrod:~/session-1/data-shell$ ls
creatures  Desktop    nano.save           notes.txt  solar.pdf  writing
data       molecules  north-pacific-gyre  pizza.cfg  thesis
azaghal@Nogrod:~/session-1/data-shell$ mkdir "dir with space"
azaghal@Nogrod:~/session-1/data-shell$ ls
creatures  Desktop         molecules  north-pacific-gyre  pizza.cfg  thesis
data       dir with space  nano.save  notes.txt           solar.pdf  writing
azaghal@Nogrod:~/session-1/data-shell$ cd "dir with space"/
azaghal@Nogrod:~/session-1/data-shell/dir with space$ cd ..
azaghal@Nogrod:~/session-1/data-shell$ \
azaghal@Nogrod:~/session-1/data-shell/dir with space$ cd dir wih 
bash: cd: dir: No such file or directory
azaghal@Nogrod:~/session-1/data-shell/dir with space$ ls -F
azaghal@Nogrod:~/session-1/data-shell/dir with space$ cd ..
azaghal@Nogrod:~/session-1/data-shell$ p
creatures/  Desktop/         molecules/  north-pacific-gyre/  pizza.cfg  thesis/
data/       dir with space/  nano.save   notes.txt            solar.pdf  writing/
azaghal@Nogrod:~/session-1/data-shell$ ls
creatures  Desktop         molecules  north-pacific-gyre  pizza.cfg  thesis
data       dir with space  nano.save  notes.txt           solar.pdf  writing
azaghal@Nogrod:~/session-1/data-shell$ ls --help
Usage: ls [OPTION]... [FILE]...
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.

Mandatory arguments to long options are mandatory for short options too.
  -a, --all                  do not ignore entries starting with .
  -A, --almost-all           do not list implied . and ..
      --author               with -l, print the author of each file
  -b, --escape               print C-style escapes for nongraphic characters
      --block-size=SIZE      scale sizes by SIZE before printing them; e.g.,
                               '--block-size=M' prints sizes in units of
                               1,048,576 bytes; see SIZE format below
  -B, --ignore-backups       do not list implied entries ending with ~
  -c                         with -lt: sort by, and show, ctime (time of last
                               modification of file status information);
                               with -l: show ctime and sort by name;
                               otherwise: sort by ctime, newest first
  -C                         list entries by columns
      --color[=WHEN]         colorize the output; WHEN can be 'always' (default
                               if omitted), 'auto', or 'never'; more info below
  -d, --directory            list directories themselves, not their contents
  -D, --dired                generate output designed for Emacs' dired mode
  -f                         do not sort, enable -aU, disable -ls --color
  -F, --classify             append indicator (one of */=>@|) to entries
      --file-type            likewise, except do not append '*'
      --format=WORD          across -x, commas -m, horizontal -x, long -l,
                               single-column -1, verbose -l, vertical -C
      --full-time            like -l --time-style=full-iso
  -g                         like -l, but do not list owner
      --group-directories-first
                             group directories before files;
                               can be augmented with a --sort option, but any
                               use of --sort=none (-U) disables grouping
  -G, --no-group             in a long listing, don't print group names
  -h, --human-readable       with -l and/or -s, print human readable sizes
                               (e.g., 1K 234M 2G)
      --si                   likewise, but use powers of 1000 not 1024
  -H, --dereference-command-line
                             follow symbolic links listed on the command line
      --dereference-command-line-symlink-to-dir
                             follow each command line symbolic link
                               that points to a directory
      --hide=PATTERN         do not list implied entries matching shell PATTERN
                               (overridden by -a or -A)
      --indicator-style=WORD  append indicator with style WORD to entry names:
                               none (default), slash (-p),
                               file-type (--file-type), classify (-F)
  -i, --inode                print the index number of each file
  -I, --ignore=PATTERN       do not list implied entries matching shell PATTERN
  -k, --kibibytes            default to 1024-byte blocks for disk usage
  -l                         use a long listing format
  -L, --dereference          when showing file information for a symbolic
                               link, show information for the file the link
                               references rather than for the link itself
  -m                         fill width with a comma separated list of entries
  -n, --numeric-uid-gid      like -l, but list numeric user and group IDs
  -N, --literal              print raw entry names (don't treat e.g. control
                               characters specially)
  -o                         like -l, but do not list group information
  -p, --indicator-style=slash
                             append / indicator to directories
  -q, --hide-control-chars   print ? instead of nongraphic characters
      --show-control-chars   show nongraphic characters as-is (the default,
                               unless program is 'ls' and output is a terminal)
  -Q, --quote-name           enclose entry names in double quotes
      --quoting-style=WORD   use quoting style WORD for entry names:
                               literal, locale, shell, shell-always,
                               shell-escape, shell-escape-always, c, escape
  -r, --reverse              reverse order while sorting
  -R, --recursive            list subdirectories recursively
  -s, --size                 print the allocated size of each file, in blocks
  -S                         sort by file size, largest first
      --sort=WORD            sort by WORD instead of name: none (-U), size (-S),
                               time (-t), version (-v), extension (-X)
      --time=WORD            with -l, show time as WORD instead of default
                               modification time: atime or access or use (-u);
                               ctime or status (-c); also use specified time
                               as sort key if --sort=time (newest first)
      --time-style=STYLE     with -l, show times using style STYLE:
                               full-iso, long-iso, iso, locale, or +FORMAT;
                               FORMAT is interpreted like in 'date'; if FORMAT
                               is FORMAT1<newline>FORMAT2, then FORMAT1 applies
                               to non-recent files and FORMAT2 to recent files;
                               if STYLE is prefixed with 'posix-', STYLE
                               takes effect only outside the POSIX locale
  -t                         sort by modification time, newest first
  -T, --tabsize=COLS         assume tab stops at each COLS instead of 8
  -u                         with -lt: sort by, and show, access time;
                               with -l: show access time and sort by name;
                               otherwise: sort by access time, newest first
  -U                         do not sort; list entries in directory order
  -v                         natural sort of (version) numbers within text
  -w, --width=COLS           set output width to COLS.  0 means no limit
  -x                         list entries by lines instead of by columns
  -X                         sort alphabetically by entry extension
  -Z, --context              print any security context of each file
  -1                         list one file per line.  Avoid '\n' with -q or -b
      --help     display this help and exit
      --version  output version information and exit

The SIZE argument is an integer and optional unit (example: 10K is 10*1024).
Units are K,M,G,T,P,E,Z,Y (powers of 1024) or KB,MB,... (powers of 1000).

Using color to distinguish file types is disabled both by default and
with --color=never.  With --color=auto, ls emits color codes only when
standard output is connected to a terminal.  The LS_COLORS environment
variable can change the settings.  Use the dircolors command to set it.

Exit status:
 0  if OK,
 1  if minor problems (e.g., cannot access subdirectory),
 2  if serious trouble (e.g., cannot access command-line argument).

GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Full documentation at: <http://www.gnu.org/software/coreutils/ls>
or available locally via: info '(coreutils) ls invocation'
azaghal@Nogrod:~/session-1/data-shell$ ls -a
.              creatures  dir with space  north-pacific-gyre  solar.pdf
..             data       molecules       notes.txt           thesis
.bash_profile  Desktop    nano.save       pizza.cfg           writing
azaghal@Nogrod:~/session-1/data-shell$ ls
creatures  Desktop         molecules  north-pacific-gyre  pizza.cfg  thesis
data       dir with space  nano.save  notes.txt           solar.pdf  writing
azaghal@Nogrod:~/session-1/data-shell$ ls
creatures  Desktop         molecules  north-pacific-gyre  pizza.cfg  thesis
data       dir with space  nano.save  notes.txt           solar.pdf  writing
azaghal@Nogrod:~/session-1/data-shell$ ./
=LS(1)                                 User Commands                                 LS(1)

NAME
       ls - list directory contents

SYNOPSIS
       ls [OPTION]... [FILE]...

DESCRIPTION
       List information about the FILEs (the current directory by default).  Sort entries
       alphabetically if none of -cftuvSUX nor --sort is specified.

       Mandatory arguments to long options are mandatory for short options too.

       -a, --all
              do not ignore entries starting with .

       -A, --almost-all
              do not list implied . and ..

       --author
              with -l, print the author of each file

       -b, --escape
              print C-style escapes for nongraphic characters

       --block-size=SIZE
              scale sizes by SIZE before printing  them;  e.g.,  '--block-size=M'  prints
              sizes in units of 1,048,576 bytes; see SIZE format below

       -B, --ignore-backups
              do not list implied entries ending with ~

 Manual page ls(1) line 1 (press h for help or q to quit)
 Manual page ls(1) line 2 (press h for help or q to quit)
 Manual page ls(1) line 3 (press h for help or q to quit)
 Manual page ls(1) line 4 (press h for help or q to quit)
 Manual page ls(1) line 5 (press h for help or q to quit)
 Manual page ls(1) line 6 (press h for help or q to quit)
 Manual page ls(1) line 7 (press h for help or q to quit)
 Manual page ls(1) line 8 (press h for help or q to quit)
 Manual page ls(1) line 9 (press h for help or q to quit)









NAME
       ls - list directory contents

SYNOPSIS
       ls [OPTION]... [FILE]...

DESCRIPTION
       List information about the FILEs (the current directory by default).  Sort entries
       alphabetically if none of -cftuvSUX nor --sort is specified.

       Mandatory arguments to long options are mandatory for short options too.

       -a, --all
              do not ignore entries starting with .

       -A, --almost-all
              do not list implied . and ..

       --author
              with -l, print the author of each file

       -b, --escape
              print C-style escapes for nongraphic characters

       --block-size=SIZE
              scale sizes by SIZE before printing  them;  e.g.,  '--block-size=M'  prints
              sizes in units of 1,048,576 bytes; see SIZE format below

       -B, --ignore-backups
              do not list implied entries ending with ~

LS(1)                                 User Commands                                 LS(1)

NAME
       ls - list directory contents

SYNOPSIS
       ls [OPTION]... [FILE]...

DESCRIPTION
       List information about the FILEs (the current directory by default).  Sort entries
       alphabetically if none of -cftuvSUX nor --sort is specified.

       Mandatory arguments to long options are mandatory for short options too.

       -a, --all
              do not ignore entries starting with .

       -A, --almost-all
              do not list implied . and ..

       --author
              with -l, print the author of each file

       -b, --escape
              print C-style escapes for nongraphic characters

       --block-size=SIZE
              scale sizes by SIZE before printing  them;  e.g.,  '--block-size=M'  prints
              sizes in units of 1,048,576 bytes; see SIZE format below

       -B, --ignore-backups
              do not list implied entries ending with ~

       -c     with  -lt: sort by, and show, ctime (time of last modification of file sta‐
              tus information); with -l: show ctime and sort by name; otherwise: sort  by
              ctime, newest first
 Manual page ls(1) line 4 (press h for help or q to quit)
Automation  data-shell  Python_Visualization
azaghal@Nogrod:~/session-1/data-shell$ ls
creatures  Desktop         molecules  north-pacific-gyre  pizza.cfg  thesis
data       dir with space  nano.save  notes.txt           solar.pdf  writing
azaghal@Nogrod:~/session-1/data-shell$ ls data
amino-acids.txt  animals.txt  morse.txt  planets.txt  sunspot.txt
animal-counts    elements     pdb        salmon.txt
azaghal@Nogrod:~/session-1/data-shell$ ls -F -a data
./   amino-acids.txt  animals.txt  morse.txt  planets.txt  sunspot.txt
../  animal-counts/   elements/    pdb/       salmon.txt
azaghal@Nogrod:~/session-1/data-shell$ man ls
=LS(1)                                 User Commands                                 LS(1)

NAME
       ls - list directory contents

SYNOPSIS
       ls [OPTION]... [FILE]...

DESCRIPTION
       List information about the FILEs (the current directory by default).  Sort entries
       alphabetically if none of -cftuvSUX nor --sort is specified.

       Mandatory arguments to long options are mandatory for short options too.

       -a, --all
              do not ignore entries starting with .

       -A, --almost-all
              do not list implied . and ..

       --author
              with -l, print the author of each file

       -b, --escape
              print C-style escapes for nongraphic characters

       --block-size=SIZE
              scale sizes by SIZE before printing  them;  e.g.,  '--block-size=M'  prints
              sizes in units of 1,048,576 bytes; see SIZE format below

       -B, --ignore-backups
              do not list implied entries ending with ~

 Manual page ls(1) line 1 (press h for help or q to quit)
azaghal@Nogrod:~/session-1/data-shell/north-pacific-gyre$ ls
2012-07-03
azaghal@Nogrod:~/session-1/data-shell/north-pacific-gyre$ mkdir 2012-7-2
azaghal@Nogrod:~/session-1/data-shell/north-pacific-gyre$ ls
2012-07-03  2012-7-2
azaghal@Nogrod:~/session-1/data-shell/north-pacific-gyre$ ls
azaghal@Nogrod:~/session-1/data-shell/north-pacific-gyre$ ls
2012-07-02  2012-07-03
azaghal@Nogrod:~/session-1/data-shell/north-pacific-gyre$ cd ~/jupyter/research-notebook/
azaghal@Nogrod:~/jupyter/research-notebook$ ls
2016  2017  notebook-for-qi.ipynb  table-of-contents.html  update-toc.sh
azaghal@Nogrod:~/jupyter/research-notebook$ cd 2016
azaghal@Nogrod:~/jupyter/research-notebook/2017$ ls
01  02  03  04  05
azaghal@Nogrod:~/jupyter/research-notebook/2017$ cd 0
azaghal@Nogrod:~/jupyter/research-notebook/2017/05$ ls
2017-05-01.ipynb  2017-05-02-a.ipynb  2017-05-02-b.ipynb
azaghal@Nogrod:~/jupyter/research-notebook/2017/05$ cd ../..
azaghal@Nogrod:~/jupyter/research-notebook$ ls
2016  2017  notebook-for-qi.ipynb  table-of-contents.html  update-toc.sh
azaghal@Nogrod:~/jupyter/research-notebook$ 
2016  2017  notebook-for-qi.ipynb  table-of-contents.html  update-toc.sh
azaghal@Nogrod:~/jupyter/research-notebook$ cd ~/session-1/data-shell/
azaghal@Nogrod:~/session-1/data-shell$ ls
creatures  Desktop         molecules  north-pacific-gyre  pizza.cfg  thesis
data       dir with space  nano.save  notes.txt           solar.pdf  writing
azaghal@Nogrod:~/session-1/data-shell$ mkdir "
azaghal@Nogrod:~/session-1/data-shell$ ls
creatures  Desktop            molecules  north-pacific-gyre  pizza.cfg  thesis
data       dir-without-space  nano.save  notes.txt           solar.pdf  writing
azaghal@Nogrod:~/session-1/data-shell$ nano draft.txt
(B===(B(B[ New File ](B(B  GNU nano 2.5.3                  File: draft.txt                                           ^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(B^X(B Exit(B^R(B Read File   (B^\(B Replace     (B^U(B Uncut Text  (B^T(B To Spell    (B^_(B Go To Line(BModified(BThis is not  longer a blan
creatures  Desktop            draft.txt  nano.save           notes.txt  solar.pdf  writing
data       dir-without-space  molecules  north-pacific-gyre  pizza.cfg  thesis
azaghal@Nogrod:~/session-1/data-shell$ nano /home/azaghal/session-1/data-shell/draft2.txt
(B===(B(B[ New File ](B(B  GNU nano 2.5.3      File: /home/azaghal/session-1/data-shell/draft2.txt                   ^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(B^X(B Exit(B^R(B Read File   (B^\(B Replace     (B^U(B Uncut Text  (B^T(B To Spell    (B^_(B Go To Line(BModified(BSomething else(BFile Name to Write: /home/azaghal/session-1/data-shell/draft2.txt                           (B   (BM-D(B DOS Format    (BM-A(B Append        (BM-B(B Backup File
creatures  Desktop            draft2.txt  molecules  north-pacific-gyre  pizza.cfg  thesis
data       dir-without-space  draft.txt   nano.save  notes.txt           solar.pdf  writing
azaghal@Nogrod:~/session-1/data-shell$ nano draft.txt
(B===(B(B[ Reading File ](B(B 1 line ](B(B  GNU nano 2.5.3                  File: draft.txt                                           (BThis is no longer a blank file.(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(B^X(B Exit(B^R(B Read File   (B^\(B Replace     (B^U(B Uncut Text  (B^T(B To Spell    (B^_(B Go To Line>azaghal@Nogrod:~/session-1/data-shell$ rm draft.txt
azaghal@Nogrod:~/session-1/data-shell$ ls
creatures  Desktop            draft2.txt  nano.save           notes.txt  solar.pdf  writing
data       dir-without-space  molecules   north-pacific-gyre  pizza.cfg  thesis
azaghal@Nogrod:~/session-1/data-shell$ mv draft2.txt dir-without-space/
azaghal@Nogrod:~/session-1/data-shell$ ls mv
draft2.txt
azaghal@Nogrod:~/session-1/data-shell$ rm dir-without-space/
rm: cannot remove 'dir-without-space/': Is a directory
azaghal@Nogrod:~/session-1/data-shell$ rm -r -i dir-without-space/
rm: descend into directory 'dir-without-space/'? y
rm: remove regular file 'dir-without-space/draft2.txt'? y
rm: remove directory 'dir-without-space/'? y n
azaghal@Nogrod:~/session-1/data-shell$ ls
creatures  Desktop            molecules  north-pacific-gyre  pizza.cfg  thesis
data       dir-without-space  nano.save  notes.txt           solar.pdf  writing
azaghal@Nogrod:~/session-1/data-shell$ ls dir-without-space/
azaghal@Nogrod:~/session-1/data-shell$ rm -r dir-without-space/
azaghal@Nogrod:~/session-1/data-shell$ ls
creatures  Desktop    nano.save           notes.txt  solar.pdf  writing
data       molecules  north-pacific-gyre  pizza.cfg  thesis
azaghal@Nogrod:~/session-1/data-shell$ ls -r north-pacific-gyre/
2012-07-03  2012-07-02
azaghal@Nogrod:~/session-1/data-shell$ ls -r north-pacific-gyre/ north-pacific-gyre/R north-pacific-gyre/
north-pacific-gyre/:
2012-07-02  2012-07-03

north-pacific-gyre/2012-07-02:

north-pacific-gyre/2012-07-03:
do-stats.sh     NENE01843A.txt  NENE02043A.txt        stats-NENE01843A.txt
goodiff         NENE01843B.txt  NENE02043B.txt        stats-NENE01843B.txt
goostats        NENE01971Z.txt  stats-datafile        stats-NENE01978A.txt
NENE01729A.txt  NENE01978A.txt  stats-NENE01729A.txt  stats-NENE01978B.txt
NENE01729B.txt  NENE01978B.txt  stats-NENE01729B.txt  stats-NENE02018B.txt
NENE01736A.txt  NENE02018B.txt  stats-NENE01736A.txt  stats-NENE02040A.txt
NENE01751A.txt  NENE02040A.txt  stats-NENE01751A.txt  stats-NENE02040B.txt
NENE01751B.txt  NENE02040B.txt  stats-NENE01751B.txt  stats-NENE02043A.txt
NENE01812A.txt  NENE02040Z.txt  stats-NENE01812A.txt  stats-NENE02043B.txt
azaghal@Nogrod:~/session-1/data-shell$ ls
creatures  Desktop    nano.save           notes.txt  solar.pdf  writing
data       molecules  north-pacific-gyre  pizza.cfg  thesis
azaghal@Nogrod:~/session-1/data-shell$ nano draft.txt
(B===(B(B[ New File ](B(B  GNU nano 2.5.3                  File: draft.txt                                           ^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(B^X(B Exit(B^R(B Read File   (B^\(B Replace     (B^U(B Uncut Text  (B^T(B To Spell    (B^_(B Go To Line(BModified(BHello(BFile Name to Write: draft.txt                                                               (B   (BM-D(B DOS Format    (BM-A(B Append        (BM-B(B Backup File
(B===(B(B[ New File ](B(B  GNU nano 2.5.3                  File: draft2.txt                                          ^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(B^X(B Exit(B^R(B Read File   (B^\(B Replace     (B^U(B Uncut Text  (B^T(B To Spell    (B^_(B Go To Line(BModified(BThere(BFile Name to Write: draft2.txt                                                              (B   (BM-D(B DOS Format    (BM-A(B Append        (BM-B(B Backup File
creatures  Desktop     draft.txt  nano.save           notes.txt  solar.pdf  writing
data       draft2.txt  molecules  north-pacific-gyre  pizza.cfg  thesis
azaghal@Nogrod:~/session-1/data-shell$ mv draft2.txt draft.txt
azaghal@Nogrod:~/session-1/data-shell$ ls
creatures  Desktop    molecules  north-pacific-gyre  pizza.cfg  thesis
data       draft.txt  nano.save  notes.txt           solar.pdf  writing
azaghal@Nogrod:~/session-1/data-shell$ nano da
(B===(B(B[ New File ](B(B  GNU nano 2.5.3                  File: draft2.txt                                          ^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(B^X(B Exit(B^R(B Read File   (B^\(B Replace     (B^U(B Uncut Text  (B^T(B To Spell    (B^_(B Go To Line(BModified(BHello(BFile Name to Write: draft2.txt                                                              (B   (BM-D(B DOS Format    (BM-A(B Append        (BM-B(B Backup File
creatures  Desktop     draft.txt  nano.save           notes.txt  solar.pdf  writing
data       draft2.txt  molecules  north-pacific-gyre  pizza.cfg  thesis
azaghal@Nogrod:~/session-1/data-shell$ mv -i drf
mv: overwrite 'draft.txt'? n
azaghal@Nogrod:~/session-1/data-shell$ rm draft.txt draft2.txt 
azaghal@Nogrod:~/session-1/data-shell$ ls
creatures  Desktop    nano.save           notes.txt  solar.pdf  writing
data       molecules  north-pacific-gyre  pizza.cfg  thesis
azaghal@Nogrod:~/session-1/data-shell$ cd ..
azaghal@Nogrod:~/session-1$ ls
Automation  data-shell  Python_Visualization
azaghal@Nogrod:~/session-1$ cd data-shell/north-pacific-gyre/2012-07-0
2012-07-02/ 2012-07-03/ 
azaghal@Nogrod:~/session-1$ cd data-shell/north-pacific-gyre/2012-07-0
2012-07-02/ 2012-07-03/ 
azaghal@Nogrod:~/session-1$ cd data-shell/north-pacific-gyre/2012-07-0
2012-07-02/ 2012-07-03/ 
azaghal@Nogrod:~/session-1$ cd data-shell/north-pacific-gyre/2012-07-03
azaghal@Nogrod:~/session-1/data-shell/north-pacific-gyre/2012-07-03$ cd -
/home/azaghal/session-1
azaghal@Nogrod:~/session-1$ cd -
/home/azaghal/session-1/data-shell/north-pacific-gyre/2012-07-03
azaghal@Nogrod:~/session-1/data-shell/north-pacific-gyre/2012-07-03$ cd -
/home/azaghal/session-1
azaghal@Nogrod:~/session-1$ cd ~
azaghal@Nogrod:~$ pwd
/home/azaghal
azaghal@Nogrod:~$ cd
azaghal@Nogrod:~$ cd ~/session-1/
azaghal@Nogrod:~/session-1$ cd
Automation  data-shell  Python_Visualization
azaghal@Nogrod:~/session-1$ cd data-shell/
azaghal@Nogrod:~/session-1/data-shell$ ls
creatures  Desktop    nano.save           notes.txt  solar.pdf  writing
data       molecules  north-pacific-gyre  pizza.cfg  thesis
azaghal@Nogrod:~/session-1/data-shell$ ls molecules/
cubane.pdb  lengths.txt  middle.sh   pentane.pdb  sorted-lengths.txt
ethane.pdb  methane.pdb  octane.pdb  propane.pdb  sorted.sh
azaghal@Nogrod:~/session-1/data-shell$ cd molecules/
azaghal@Nogrod:~/session-1/data-shell/molecules$ ls
cubane.pdb  lengths.txt  middle.sh   pentane.pdb  sorted-lengths.txt
ethane.pdb  methane.pdb  octane.pdb  propane.pdb  sorted.sh
azaghal@Nogrod:~/session-1/data-shell/molecules$ nano cubane.pdb 
(B===(B(B[ Reading File ](B(B[ Read 20 lines(B(B  GNU nano 2.5.3                  File: cubane.pdb                                          (BCOMPNDCUBANEAUTHORDAVE WOODCOCK  95 12 06ATOM1  C10.789  -0.852   0.504  1.00  0.00ATOM2  C1-0.161  -1.104  -0.624  1.00  0.00ATOM3  C1-1.262  -0.440   0.160  1.00  0.00ATOM4  C1-0.289  -0.202   1.284  1.00  0.00ATOM5  C11.203   0.513  -0.094  1.00  0.00ATOM6  C10.099   1.184   0.694  1.00  0.00ATOM7  C1-0.885   0.959  -0.460  1.00  0.00ATOM8  C10.236   0.283  -1.269  1.00  0.00ATOM9  H11.410  -1.631   0.942  1.00  0.00ATOM     10  H1-0.262  -2.112  -1.024  1.00  0.00ATOM     11  H1-2.224  -0.925   0.328  1.00  0.00ATOM     12  H1-0.468  -0.501   2.315  1.00  0.00ATOM     13  H12.224   0.892  -0.134  1.00  0.00ATOM     14  H10.240   2.112   1.251  1.00  0.00ATOM     15  H1-1.565   1.730  -0.831  1.00  0.00ATOM     16  H10.472   0.494  -2.315  1.00  0.00TER171END(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(B^X(B Exit(B^R(B Read File   (B^\(B Replace     (B^U(B Uncut Text  (B^T(B To Spell    (B^_(B Go To Line(B[ line 1/21 (4%), col 1/19 (5%), char 0/1158 (0%) ](B
  20  156 1158 cubane.pdb
azaghal@Nogrod:~/session-1/data-shell/molecules$ wc *.pdb
  20  156 1158 cubane.pdb
  12   84  622 ethane.pdb
   9   57  422 methane.pdb
  30  246 1828 octane.pdb
  21  165 1226 pentane.pdb
  15  111  825 propane.pdb
 107  819 6081 total
azaghal@Nogrod:~/session-1/data-shell/molecules$ wc -l *.pdb
  20 cubane.pdb
  12 ethane.pdb
   9 methane.pdb
  30 octane.pdb
  21 pentane.pdb
  15 propane.pdb
 107 total
azaghal@Nogrod:~/session-1/data-shell/molecules$ wc -l *.pdb > lengths.txt
azaghal@Nogrod:~/session-1/data-shell/molecules$ ls
cubane.pdb  lengths.txt  middle.sh   pentane.pdb  sorted-lengths.txt
ethane.pdb  methane.pdb  octane.pdb  propane.pdb  sorted.sh
azaghal@Nogrod:~/session-1/data-shell/molecules$ nano lengths.txt 
(B===(B(B[ Reading File ](B(B 7 lines(B(B  GNU nano 2.5.3                 File: lengths.txt                                          (B20 cubane.pdb12 ethane.pdb9 methane.pdb30 octane.pdb21 pentane.pdb15 propane.pdb 107 total(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(B^X(B Exit(B^R(B Read File   (B^\(B Replace     (B^U(B Uncut Text  (B^T(B To Spell    (B^_(B Go To Line>azaghal@Nogrod:~/session-1/data-shell/molecules$ sort -n lengths.txt 
   9 methane.pdb
  12 ethane.pdb
  15 propane.pdb
  20 cubane.pdb
  21 pentane.pdb
  30 octane.pdb
 107 total
azaghal@Nogrod:~/session-1/data-shell/molecules$ wc -c *.pdb
1158 cubane.pdb
 622 ethane.pdb
 422 methane.pdb
1828 octane.pdb
1226 pentane.pdb
 825 propane.pdb
6081 total
azaghal@Nogrod:~/session-1/data-shell/molecules$ wc -c *.pdb|
 422 methane.pdb
 622 ethane.pdb
 825 propane.pdb
1158 cubane.pdb
1226 pentane.pdb
1828 octane.pdb
6081 total
azaghal@Nogrod:~/session-1/data-shell/molecules$ wc -l *pd
   9 methane.pdb
  12 ethane.pdb
  15 propane.pdb
  20 cubane.pdb
  21 pentane.pdb
  30 octane.pdb
 107 total
azaghal@Nogrod:~/session-1/data-shell/molecules$ ls
cubane.pdb  lengths.txt  middle.sh   pentane.pdb  sorted-lengths.txt
ethane.pdb  methane.pdb  octane.pdb  propane.pdb  sorted.sh
azaghal@Nogrod:~/session-1/data-shell/molecules$ ls 
A bunch of things

      2       4      19
azaghal@Nogrod:~/session-1/data-shell/molecules$ cd ..
azaghal@Nogrod:~/session-1/data-shell$ ls
creatures  Desktop    nano.save           notes.txt  solar.pdf  writing
data       molecules  north-pacific-gyre  pizza.cfg  thesis
azaghal@Nogrod:~/session-1/data-shell$ cd creatures/
azaghal@Nogrod:~/session-1/data-shell/creatures$ lss
basilisk.dat  original-basilisk.dat  original-unicorn.dat  unicorn.dat
azaghal@Nogrod:~/session-1/data-shell/creatures$ rm *
azaghal@Nogrod:~/session-1/data-shell/creatures$ ls
basilisk.dat  unicorn.dat
azaghal@Nogrod:~/session-1/data-shell/creatures$ cp *.dat original-*.dat
cp: target 'original-*.dat' is not a directory
azaghal@Nogrod:~/session-1/data-shell/creatures$ for filename in b
> do
>     cp filn
> done
azaghal@Nogrod:~/session-1/data-shell/creatures$ ls
basilisk.dat  original-basilisk.dat  original-unicorn.dat  unicorn.dat
azaghal@Nogrod:~/session-1/data-shell/creatures$ man cp
=CP(1)                                 User Commands                                 CP(1)

NAME
       cp - copy files and directories

SYNOPSIS
       cp [OPTION]... [-T] SOURCE DEST
       cp [OPTION]... SOURCE... DIRECTORY
       cp [OPTION]... -t DIRECTORY SOURCE...

DESCRIPTION
       Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.

       Mandatory arguments to long options are mandatory for short options too.

       -a, --archive
              same as -dR --preserve=all

       --attributes-only
              don't copy the file data, just the attributes

       --backup[=CONTROL]
              make a backup of each existing destination file

       -b     like --backup but does not accept an argument

       --copy-contents
              copy contents of special files when recursive

       -d     same as --no-dereference --preserve=links

       -f, --force
              if  an  existing destination file cannot be opened, remove it and try again
 Manual page cp(1) line 1 (press h for help or q to quit)

NAME
       cp - copy files and directories

SYNOPSIS
       cp [OPTION]... [-T] SOURCE DEST
       cp [OPTION]... SOURCE... DIRECTORY
       cp [OPTION]... -t DIRECTORY SOURCE...

DESCRIPTION
       Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.

       Mandatory arguments to long options are mandatory for short options too.

       -a, --archive
              same as -dR --preserve=all

       --attributes-only
              don't copy the file data, just the attributes

       --backup[=CONTROL]
              make a backup of each existing destination file

       -b     like --backup but does not accept an argument

       --copy-contents
              copy contents of special files when recursive

       -d     same as --no-dereference --preserve=links

       -f, --force
              if  an  existing destination file cannot be opened, remove it and try again
CP(1)                                 User Commands                                 CP(1)

NAME
       cp - copy files and directories

SYNOPSIS
       cp [OPTION]... [-T] SOURCE DEST
       cp [OPTION]... SOURCE... DIRECTORY
       cp [OPTION]... -t DIRECTORY SOURCE...

DESCRIPTION
       Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.

       Mandatory arguments to long options are mandatory for short options too.

       -a, --archive
              same as -dR --preserve=all

       --attributes-only
              don't copy the file data, just the attributes

       --backup[=CONTROL]
              make a backup of each existing destination file

       -b     like --backup but does not accept an argument

       --copy-contents
              copy contents of special files when recursive

       -d     same as --no-dereference --preserve=links

       -f, --force
              if  an  existing destination file cannot be opened, remove it and try again
              (this option is ignored when the -n option is also used)

       -i, --interactive
              prompt before overwrite (overrides a previous -n option)

       -H     follow command-line symbolic links in SOURCE

       -l, --link
              hard link files instead of copying

       -L, --dereference
              always follow symbolic links in SOURCE

       -n, --no-clobber
              do not overwrite an existing file (overrides a previous -i option)

       -P, --no-dereference
              never follow symbolic links in SOURCE

       -p     same as --preserve=mode,ownership,timestamps

       --preserve[=ATTR_LIST]
              preserve the specified attributes (default: mode,ownership,timestamps),  if
              possible additional attributes: context, links, xattr, all

       --no-preserve=ATTR_LIST
              don't preserve the specified attributes
 Manual page cp(1) line 28/160 37% (press h for help or q to quit)



 Manual page cp(1) line 26/160 35% (press h for help or q to quit)
              don't preserve the specified attributes
 Manual page cp(1) line 28/160 37% (press h for help or q to quit)
       -R, -r, --recursive
              copy directories recursively

       --reflink[=WHEN]
              control clone/CoW copies. See below

       --remove-destination
              remove  each  existing  destination file before attempting to open it (con‐
              trast with --force)

       --sparse=WHEN
              control creation of sparse files. See below

       --strip-trailing-slashes
              remove any trailing slashes from each SOURCE argument

       -s, --symbolic-link
              make symbolic links instead of copying

       -S, --suffix=SUFFIX
              override the usual backup suffix

       -t, --target-directory=DIRECTORY
              copy all SOURCE arguments into DIRECTORY

       -T, --no-target-directory
              treat DEST as a normal file

       -u, --update
              copy only when the SOURCE file is newer than the destination file  or  when
              the destination file is missing

       -v, --verbose
 Manual page cp(1) line 65/160 58% (press h for help or q to quit)

 Manual page cp(1) line 65/160 58% (press h for help or q to quit)
basilisk.dat  original-basilisk.dat  original-unicorn.dat  unicorn.dat
azaghal@Nogrod:~/session-1/data-shell/creatures$ rm original-*
azaghal@Nogrod:~/session-1/data-shell/creatures$ ls
basilisk.dat  unicorn.dat
azaghal@Nogrod:~/session-1/data-shell/creatures$ nano save-originals.sh
(B===(B(B[ New File ](B(B  GNU nano 2.5.3               File: save-originals.sh                                      ^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(B^X(B Exit(B^R(B Read File   (B^\(B Replace     (B^U(B Uncut Text  (B^T(B To Linter   (B^_(B Go To Line(BModified(Bfofor(B (B ffi(Bfilename (B iin(B (B *.datddo(B (B (B (B (B    c(Bcp(B (B $(B(B$f(B(Bi(B(Bl(B(Be(B(Bn(B(Ba(B(Bm(B(Be(B (B original-$(B(B$f(B(Bi(B(Bn(B (Bl(B(Be(B(Bn(B(Ba(B(Bm(B(Be(Bddo(Bdondone(B       (Bcp(B (B$filename(B original-(B$filename(B  (Bcp(B (B$filename(B original-(B$filename(B   (Bcp(B (B$filename(B original-(B$filename(B    (Bcp(B (B$filename(B original-(B$filename(B  original-(BFile Name to Write: save-originals.sh                                                       (B   (BM-D(B DOS Format    (BM-A(B Append        (BM-B(B Backup File
basilisk.dat  save-originals.sh  unicorn.dat
azaghal@Nogrod:~/session-1/data-shell/creatures$ bash save-originals.sh 
azaghal@Nogrod:~/session-1/data-shell/creatures$ ls
basilisk.dat  original-basilisk.dat  original-unicorn.dat  save-originals.sh  unicorn.dat
azaghal@Nogrod:~/session-1/data-shell/creatures$ rm original-*
azaghal@Nogrod:~/session-1/data-shell/creatures$ ls
basilisk.dat  save-originals.sh  unicorn.dat
azaghal@Nogrod:~/session-1/data-shell/creatures$ nano save-originals.sh 
(B===(B(B[ Reading File ](B(B 4 lines(B(B  GNU nano 2.5.3               File: save-originals.sh                                      (Bfor(B filename in(B *.datdo(Bcp(B (B$filename(B original-(B$filename(Bdone(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(B^X(B Exit(B^R(B Read File   (B^\(B Replace     (B^U(B Uncut Text  (B^T(B To Linter   (B^_(B Go To LineM(BModified(BM#(B!(B/(B b(Ba(Bs(Bh(B(BFile Name to Write: save-originals.sh                                                       (B   (BM-D(B DOS Format    (BM-A(B Append        (BM-B(B Backup File
total 12
-rw-r--r-- 1 azaghal azaghal 1838 May 15 22:45 basilisk.dat
-rw-rw-r-- 1 azaghal azaghal   74 May 19 16:28 save-originals.sh
-rw-r--r-- 1 azaghal azaghal 1833 May 15 22:45 unicorn.dat
azaghal@Nogrod:~/session-1/data-shell/creatures$ chmod 
basilisk.dat  save-originals.sh  unicorn.dat
azaghal@Nogrod:~/session-1/data-shell/creatures$ bash 
azaghal@Nogrod:~/session-1/data-shell/creatures$ ls -l
total 12
-rw-r--r-- 1 azaghal azaghal 1838 May 15 22:45 basilisk.dat
-rwxrwxr-x 1 azaghal azaghal   74 May 19 16:28 save-originals.sh
-rw-r--r-- 1 azaghal azaghal 1833 May 15 22:45 unicorn.dat
azaghal@Nogrod:~/session-1/data-shell/creatures$ nano
save-originals.sh: command not found
azaghal@Nogrod:~/session-1/data-shell/creatures$ ./save-originals.sh 
bash: ./save-originals.sh: bash: bad interpreter: No such file or directory
azaghal@Nogrod:~/session-1/data-shell/creatures$ nano save-originals.sh 
(B===(B(B[ Reading File ](B(B 6 lines(B(B  GNU nano 2.5.3               File: save-originals.sh                                      (B#!bashfor(B filename in(B *.datdo(Bcp(B (B$filename(B original-(B$filename(Bdone(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(B^X(B Exit(B^R(B Read File   (B^\(B Replace     (B^U(B Uncut Text  (B^T(B To Linter   (B^_(B Go To Line(BModified(Bibash(B/bash(Bbbash(Bibash(Bnbash(B/bash(B(BFile Name to Write: save-originals.sh                                                       (B   (BM-D(B DOS Format    (BM-A(B Append        (BM-B(B Backup File
azaghal@Nogrod:~/session-1/data-shell/creatures$ ls
basilisk.dat  original-basilisk.dat  original-unicorn.dat  save-originals.sh  unicorn.dat
azaghal@Nogrod:~/session-1/data-shell/creatures$ ls -a -F
./   basilisk.dat           original-unicorn.dat  unicorn.dat
../  original-basilisk.dat  save-originals.sh*
azaghal@Nogrod:~/session-1/data-shell/creatures$ ls -aF
./   basilisk.dat           original-unicorn.dat  unicorn.dat
../  original-basilisk.dat  save-originals.sh*
azaghal@Nogrod:~/session-1/data-shell/creatures$ ls --
azaghal@Nogrod:~/session-1$ ls
Automation  data-shell  Python_Visualization
azaghal@Nogrod:~/session-1$ cd Automation/
azaghal@Nogrod:~/session-1/Automation$ ls
notes.md  part0_manual  part1_make_intro  part2_make_recursive
azaghal@Nogrod:~/session-1/Automation$ exit
exit
~ Asciicast recording finished.
azaghal@Nogrod:~/session-1$ exit
exit

Script done on Fri 19 May 2017 04:35:44 PM MDT