echo "Using conditional statement to create a project directory and project"

# Variable section
export project_dir=$HOME/Bash_Notebook  # change vscode to different name to test git clone
export project=$project_dir/Fastpages  # change APCSP to name of project from git clone
export project_repo="https://github.com/DeDuva4/Fastpages.git"  # change to project of choice

cd ~    # start in home directory

# Conditional block to make a project directory
if [ ! -d $project_dir ]
then 
    echo "Directory $project_dir does not exists... makinng directory $project_dir"
    mkdir -p $project_dir
fi
echo "Directory $project_dir exists." 

# Conditional block to git clone a project from project_repo
if [ ! -d $project ]
then
    echo "Directory $project does not exists... cloning $project_repo"
    cd $project_dir
    git clone $project_repo
    cd ~
fi
echo "Directory $project exists."
Using conditional statement to create a project directory and project
Directory /home/deduva/Bash_Notebook exists.004l
Directory /home/deduva/Bash_Notebook/Fastpages exists.4l

echo "Navigate to project, then navigate to area wwhere files were cloned"
cd $project
pwd

echo ""
echo "list top level or root of files with project pulled from github"
ls

echo ""
echo "list again with hidden files pulled from github"
ls -a   # hidden files flag, many shell commands have flags

echo ""
echo "list all files in long format"
ls -al   # all files and long listing
Navigate to project, then navigate to area wwhere files were cloned
/home/deduva/Bash_Notebook/Fastpages

list top level or root of files with project pulled from github
2022-05-15-07-21-16.png  _config.yml         _includes   _notebooks  _sass
2022-05-15-07-24-25.png  docker-compose.yml  index.html  _pages      _word
2022-05-15-07-25-15.png  _fastpages_docs     _layouts    _plugins
_action_files            Gemfile             LICENSE     _posts
assets                   images              Makefile    README.md

list again with hidden files pulled from github
.                        .devcontainer.json  images      _plugins
..                       docker-compose.yml  _includes   _posts
2022-05-15-07-21-16.png  _fastpages_docs     index.html  README.md
2022-05-15-07-24-25.png  Gemfile             _layouts    _sass
2022-05-15-07-25-15.png  .git                LICENSE     _word
_action_files            .gitattributes      Makefile
assets                   .github             _notebooks
_config.yml              .gitignore          _pages

list all files in long format
total 488[?2004l
drwxr-xr-x 16 deduva deduva   4096 Aug 28 15:11 .
drwxr-xr-x  3 deduva deduva   4096 Aug 28 15:11 ..
-rw-r--r--  1 deduva deduva 207007 Aug 28 15:11 2022-05-15-07-21-16.png
-rw-r--r--  1 deduva deduva  90979 Aug 28 15:11 2022-05-15-07-24-25.png
-rw-r--r--  1 deduva deduva  81691 Aug 28 15:11 2022-05-15-07-25-15.png
drwxr-xr-x  2 deduva deduva   4096 Aug 28 15:11 _action_files
drwxr-xr-x  4 deduva deduva   4096 Aug 28 15:11 assets
-rw-r--r--  1 deduva deduva   3606 Aug 28 15:11 _config.yml
-rw-r--r--  1 deduva deduva    420 Aug 28 15:11 .devcontainer.json
-rwxr-xr-x  1 deduva deduva   1136 Aug 28 15:11 docker-compose.yml
drwxr-xr-x  2 deduva deduva   4096 Aug 28 15:11 _fastpages_docs
-rwxr-xr-x  1 deduva deduva   1304 Aug 28 15:11 Gemfile
drwxr-xr-x  8 deduva deduva   4096 Aug 28 15:11 .git
-rw-r--r--  1 deduva deduva     84 Aug 28 15:11 .gitattributes
drwxr-xr-x  4 deduva deduva   4096 Aug 28 15:11 .github
-rw-r--r--  1 deduva deduva    161 Aug 28 15:11 .gitignore
drwxr-xr-x  3 deduva deduva   4096 Aug 28 15:11 images
drwxr-xr-x  2 deduva deduva   4096 Aug 28 15:11 _includes
-rw-r--r--  1 deduva deduva    134 Aug 28 15:11 index.html
drwxr-xr-x  2 deduva deduva   4096 Aug 28 15:11 _layouts
-rw-r--r--  1 deduva deduva  11351 Aug 28 15:11 LICENSE
-rwxr-xr-x  1 deduva deduva   1422 Aug 28 15:11 Makefile
drwxr-xr-x  4 deduva deduva   4096 Aug 28 15:11 _notebooks
drwxr-xr-x  2 deduva deduva   4096 Aug 28 15:11 _pages
drwxr-xr-x  2 deduva deduva   4096 Aug 28 15:11 _plugins
drwxr-xr-x  2 deduva deduva   4096 Aug 28 15:11 _posts
-rwxr-xr-x  1 deduva deduva   3602 Aug 28 15:11 README.md
drwxr-xr-x  3 deduva deduva   4096 Aug 28 15:11 _sass
drwxr-xr-x  2 deduva deduva   4096 Aug 28 15:11 _word

echo "Look for posts"
export posts=$project/_posts  # _posts inside project
cd $posts  # this should exist per fastpages
pwd  # present working directory
ls -l  # list posts
Look for posts
/home/deduva/Bash_Notebook/Fastpages/_posts
total 4h
-rw-r--r-- 1 deduva deduva 40 Aug 28 15:11 Markdown_Post.md

echo "Look for notebooks"
export notebooks=$project/_notebooks  # _notebooks is inside project
cd $notebooks   # this should exist per fastpages
pwd  # present working directory
ls -l  # list notebooks
Look for notebooks
/home/deduva/Bash_Notebook/Fastpages/_notebooks
total 16
-rw-r--r-- 1 deduva deduva  689 Aug 28 15:11 2022_08_23_Jupyter_Blog.ipynb
drwxr-xr-x 2 deduva deduva 4096 Aug 28 15:11 ghtop_images
drwxr-xr-x 2 deduva deduva 4096 Aug 28 15:11 my_icons
-rw-r--r-- 1 deduva deduva  771 Aug 28 15:11 README.md

echo "Look for images in notebooks, print working directory, list files"
cd $notebooks/images  # this should exist per fastpages
pwd
ls -l
Look for images in notebooks, print working directory, list files
bash: cd: /home/deduva/Bash_Notebook/Fastpages/_notebooks/images: No such file or directory
/home/deduva/Bash_Notebook/Fastpages/_notebooks
total 16
-rw-r--r-- 1 deduva deduva  689 Aug 28 15:11 2022_08_23_Jupyter_Blog.ipynb
drwxr-xr-x 2 deduva deduva 4096 Aug 28 15:11 ghtop_images
drwxr-xr-x 2 deduva deduva 4096 Aug 28 15:11 my_icons
-rw-r--r-- 1 deduva deduva  771 Aug 28 15:11 README.md

echo "Navigate to project, then navigate to area wwhere files were cloned"

cd $project
echo "show the contents of README.md"
echo ""

cat README.md  # show contents of file, in this case markdown
echo ""
echo "end of README.md"
Navigate to project, then navigate to area wwhere files were cloned
show the contents of README.md4l

[//]: # (This template replaces README.md when someone creates a new repo with the fastpages template.)

![](https://github.com/DeDuva4/Fastpages/workflows/CI/badge.svg) 
![](https://github.com/DeDuva4/Fastpages/workflows/GH-Pages%20Status/badge.svg) 
[![](https://img.shields.io/static/v1?label=fastai&message=fastpages&color=57aeac&labelColor=black&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUh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AAASUVORK5CYII=)](https://github.com/fastai/fastpages)

https://DeDuva4.github.io/Fastpages/

# My Blog


_powered by [fastpages](https://github.com/fastai/fastpages)_


## What To Do Next?

Great!  You have setup your repo.  Now its time to start writing content.  Some helpful links:

- [Writing Blogs With Jupyter](https://github.com/fastai/fastpages#writing-blog-posts-with-jupyter)

- [Writing Blogs With Markdown](https://github.com/fastai/fastpages#writing-blog-posts-with-markdown)

- [Writing Blog Posts With Word](https://github.com/fastai/fastpages#writing-blog-posts-with-microsoft-word)

- [(Optional) Preview Your Blog Locally](_fastpages_docs/DEVELOPMENT.md)

Note: you may want to remove example blog posts from the `_posts`,  `_notebooks` or `_word` folders (but leave them empty, don't delete these folders) if you don't want these blog posts to appear on your site.

Please use the [nbdev & blogging channel](https://forums.fast.ai/c/fastai-users/nbdev/48) in the fastai forums for any questions or feature requests.

end of README.md