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

# Variable section
export project_dir=$HOME/thisisabashtest  # change vscode to different name to test git clone
export project=$project_dir/sympy  # change APCSP to name of project from git clone
export project_repo="https://github.com/sympy/sympy.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/id/thisisabashtest exists.
Directory /home/id/thisisabashtest/sympy does not exists... cloning https://github.com/sympy/sympy.git
Cloning into 'sympy'...
remote: Enumerating objects: 363105, done.
remote: Counting objects: 100% (39/39), done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 363105 (delta 17), reused 12 (delta 6), pack-reused 363066
Receiving objects: 100% (363105/363105), 161.52 MiB | 8.65 MiB/s, done.
Resolving deltas: 100% (291308/291308), done.
Directory /home/id/thisisabashtest/sympy exists.

Output exceeds the size limit. Open the full output data in a text editor Navigate to project, then navigate to area wwhere files were cloned /home/id/thisisabashtest/sympy

list top level or root of files with project pulled from github AUTHORS asv.conf.travis.json github_deploy_key.enc CODEOWNERS banner.svg isympy.py CODE_OF_CONDUCT.md bin pytest.ini CONTRIBUTING.md codecov.yml release LICENSE conftest.py setup.cfg MANIFEST.in coveragerc_travis setup.py PULL_REQUEST_TEMPLATE.md data setupegg.py README.md doc sympy asv.conf.actions.json examples

list again with hidden files pulled from github . .travis.yml asv.conf.travis.json isympy.py .. AUTHORS banner.svg pytest.ini .ci CODEOWNERS bin release .circleci CODE_OF_CONDUCT.md codecov.yml setup.cfg .editorconfig CONTRIBUTING.md conftest.py setup.py .git LICENSE coveragerc_travis setupegg.py .gitattributes MANIFEST.in data sympy .github PULL_REQUEST_TEMPLATE.md doc .gitignore README.md examples .mailmap asv.conf.actions.json github_deploy_key.enc ... -rw-r--r-- 1 id id 2088 Aug 25 16:50 setup.cfg -rwxr-xr-x 1 id id 15142 Aug 25 16:50 setup.py -rw-r--r-- 1 id id 49 Aug 25 16:50 setupegg.py drwxr-xr-x 42 id id 4096 Aug 25 16:50 sympy

Output exceeds the size limit. Open the full output data in a text editor Look for posts bash: cd: /home/id/thisisabashtest/sympy/_posts: No such file or directory /home/id/thisisabashtest/sympy total 268 -rw-r--r-- 1 id id 46763 Aug 25 16:50 AUTHORS -rw-r--r-- 1 id id 590 Aug 25 16:50 CODEOWNERS -rw-r--r-- 1 id id 3267 Aug 25 16:50 CODE_OF_CONDUCT.md -rw-r--r-- 1 id id 625 Aug 25 16:50 CONTRIBUTING.md -rw-r--r-- 1 id id 7885 Aug 25 16:50 LICENSE -rw-r--r-- 1 id id 496 Aug 25 16:50 MANIFEST.in -rw-r--r-- 1 id id 1168 Aug 25 16:50 PULL_REQUEST_TEMPLATE.md -rw-r--r-- 1 id id 11587 Aug 25 16:50 README.md -rw-r--r-- 1 id id 3141 Aug 25 16:50 asv.conf.actions.json -rw-r--r-- 1 id id 2774 Aug 25 16:50 asv.conf.travis.json -rw-r--r-- 1 id id 87868 Aug 25 16:50 banner.svg drwxr-xr-x 2 id id 4096 Aug 25 16:50 bin -rw-r--r-- 1 id id 196 Aug 25 16:50 codecov.yml -rw-r--r-- 1 id id 2944 Aug 25 16:50 conftest.py -rw-r--r-- 1 id id 316 Aug 25 16:50 coveragerc_travis drwxr-xr-x 3 id id 4096 Aug 25 16:50 data drwxr-xr-x 7 id id 4096 Aug 25 16:50 doc drwxr-xr-x 6 id id 4096 Aug 25 16:50 examples -rw-r--r-- 1 id id 4408 Aug 25 16:50 github_deploy_key.enc -rw-r--r-- 1 id id 11199 Aug 25 16:50 isympy.py -rw-r--r-- 1 id id 424 Aug 25 16:50 pytest.ini ... -rw-r--r-- 1 id id 2088 Aug 25 16:50 setup.cfg -rwxr-xr-x 1 id id 15142 Aug 25 16:50 setup.py -rw-r--r-- 1 id id 49 Aug 25 16:50 setupegg.py drwxr-xr-x 42 id id 4096 Aug 25 16:50 sympy

Output exceeds the size limit. Open the full output data in a text editor Look for notebooks bash: cd: /home/id/thisisabashtest/sympy/_notebooks: No such file or directory /home/id/thisisabashtest/sympy total 268 -rw-r--r-- 1 id id 46763 Aug 25 16:50 AUTHORS -rw-r--r-- 1 id id 590 Aug 25 16:50 CODEOWNERS -rw-r--r-- 1 id id 3267 Aug 25 16:50 CODE_OF_CONDUCT.md -rw-r--r-- 1 id id 625 Aug 25 16:50 CONTRIBUTING.md -rw-r--r-- 1 id id 7885 Aug 25 16:50 LICENSE -rw-r--r-- 1 id id 496 Aug 25 16:50 MANIFEST.in -rw-r--r-- 1 id id 1168 Aug 25 16:50 PULL_REQUEST_TEMPLATE.md -rw-r--r-- 1 id id 11587 Aug 25 16:50 README.md -rw-r--r-- 1 id id 3141 Aug 25 16:50 asv.conf.actions.json -rw-r--r-- 1 id id 2774 Aug 25 16:50 asv.conf.travis.json -rw-r--r-- 1 id id 87868 Aug 25 16:50 banner.svg drwxr-xr-x 2 id id 4096 Aug 25 16:50 bin -rw-r--r-- 1 id id 196 Aug 25 16:50 codecov.yml -rw-r--r-- 1 id id 2944 Aug 25 16:50 conftest.py -rw-r--r-- 1 id id 316 Aug 25 16:50 coveragerc_travis drwxr-xr-x 3 id id 4096 Aug 25 16:50 data drwxr-xr-x 7 id id 4096 Aug 25 16:50 doc drwxr-xr-x 6 id id 4096 Aug 25 16:50 examples -rw-r--r-- 1 id id 4408 Aug 25 16:50 github_deploy_key.enc -rw-r--r-- 1 id id 11199 Aug 25 16:50 isympy.py -rw-r--r-- 1 id id 424 Aug 25 16:50 pytest.ini ... -rw-r--r-- 1 id id 2088 Aug 25 16:50 setup.cfg -rwxr-xr-x 1 id id 15142 Aug 25 16:50 setup.py -rw-r--r-- 1 id id 49 Aug 25 16:50 setupegg.py drwxr-xr-x 42 id id 4096 Aug 25 16:50 sympy

Output exceeds the size limit. Open the full output data in a text editor Look for images in notebooks, print working directory, list files bash: cd: /home/id/thisisabashtest/sympy/_notebooks/images: No such file or directory /home/id/thisisabashtest/sympy total 268 -rw-r--r-- 1 id id 46763 Aug 25 16:50 AUTHORS -rw-r--r-- 1 id id 590 Aug 25 16:50 CODEOWNERS -rw-r--r-- 1 id id 3267 Aug 25 16:50 CODE_OF_CONDUCT.md -rw-r--r-- 1 id id 625 Aug 25 16:50 CONTRIBUTING.md -rw-r--r-- 1 id id 7885 Aug 25 16:50 LICENSE -rw-r--r-- 1 id id 496 Aug 25 16:50 MANIFEST.in -rw-r--r-- 1 id id 1168 Aug 25 16:50 PULL_REQUEST_TEMPLATE.md -rw-r--r-- 1 id id 11587 Aug 25 16:50 README.md -rw-r--r-- 1 id id 3141 Aug 25 16:50 asv.conf.actions.json -rw-r--r-- 1 id id 2774 Aug 25 16:50 asv.conf.travis.json -rw-r--r-- 1 id id 87868 Aug 25 16:50 banner.svg drwxr-xr-x 2 id id 4096 Aug 25 16:50 bin -rw-r--r-- 1 id id 196 Aug 25 16:50 codecov.yml -rw-r--r-- 1 id id 2944 Aug 25 16:50 conftest.py -rw-r--r-- 1 id id 316 Aug 25 16:50 coveragerc_travis drwxr-xr-x 3 id id 4096 Aug 25 16:50 data drwxr-xr-x 7 id id 4096 Aug 25 16:50 doc drwxr-xr-x 6 id id 4096 Aug 25 16:50 examples -rw-r--r-- 1 id id 4408 Aug 25 16:50 github_deploy_key.enc -rw-r--r-- 1 id id 11199 Aug 25 16:50 isympy.py -rw-r--r-- 1 id id 424 Aug 25 16:50 pytest.ini ... -rw-r--r-- 1 id id 2088 Aug 25 16:50 setup.cfg -rwxr-xr-x 1 id id 15142 Aug 25 16:50 setup.py -rw-r--r-- 1 id id 49 Aug 25 16:50 setupegg.py drwxr-xr-x 42 id id 4096 Aug 25 16:50 sympy

Output exceeds the size limit. Open the full output data in a text editor Navigate to project, then navigate to area wwhere files were cloned show the contents of README.md

SymPy

pypi version Build status Join the chat at https://gitter.im/sympy/sympy Zenodo Badge Downloads GitHub Issues Git Tutorial Powered by NumFocus Commits since last release

SymPy Banner

See the AUTHORS file for the list of authors.

And many more people helped on the SymPy mailing list, reported bugs, helped organize SymPy's participation in the Google Summer of Code, the Google Highly Open Participation Contest, Google Code-In, wrote and blogged about SymPy... ... also consider contributing all your changes back, so that we can incorporate it and all of us will benefit in the end.

end of README.md

Output exceeds the size limit. Open the full output data in a text editor Show the shell environment variables, key on left of equal value on right

SHELL=/bin/bash PYTHONUNBUFFERED=1 project=/home/id/thisisabashtest/sympy CONDA_EXE=/home/id/anaconda3/bin/conda _CE_M= APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL=1 WSL_DISTRO_NAME=Ubuntu ELECTRON_RUN_AS_NODE=1 VSCODE_AMD_ENTRYPOINT=vs/workbench/api/node/extensionHostProcess NAME=Code PWD=/home/id/thisisabashtest/sympy LOGNAME=id CONDA_PREFIX=/home/id/anaconda3 MOTD_SHOWN=update-motd project_dir=/home/id/thisisabashtest HOME=/home/id LANG=C.UTF-8 WSL_INTEROP=/run/WSL/8_interop 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: WAYLAND_DISPLAY=wayland-0 CONDA_PROMPT_MODIFIER=(base) PYDEVD_USE_FRAME_EVAL=NO posts=/home/id/thisisabashtest/sympy/_posts ... VSCODE_HANDLES_UNCAUGHT_ERRORS=true OLDPWD=/home/id/thisisabashtest/sympy VSCODE_IPC_HOOKCLI=/mnt/wslg/runtime-dir/vscode-ipc-0e02c704-d0af-493b-8de2-004642c092f5.sock=/usr/bin/env

show the secrets of .git total 256 -rw-r--r-- 1 id id 23 Aug 25 16:50 HEAD drwxr-xr-x 2 id id 4096 Aug 25 16:50 branches -rw-r--r-- 1 id id 259 Aug 25 16:50 config -rw-r--r-- 1 id id 73 Aug 25 16:50 description drwxr-xr-x 2 id id 4096 Aug 25 16:50 hooks -rw-r--r-- 1 id id 209328 Aug 25 16:50 index drwxr-xr-x 2 id id 4096 Aug 25 16:50 info drwxr-xr-x 3 id id 4096 Aug 25 16:50 logs drwxr-xr-x 4 id id 4096 Aug 25 16:50 objects -rw-r--r-- 1 id id 8197 Aug 25 16:50 packed-refs drwxr-xr-x 5 id id 4096 Aug 25 16:50 refs

look at config file [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] url = https://github.com/sympy/sympy.git fetch = +refs/heads/:refs/remotes/origin/ [branch "master"] remote = origin merge = refs/heads/master

BASH HACKS

  1. we can use list function to list a certain set of files, then we can compare the version of those files to the latest release

  2. you can use conda list to list all of your packages, then use conda update PACKAGENAME to update any old packages

  3. in order to update a repository you could use some git commands like git add to add files, or git push to push any changes we make.

  4. there are lots of different commands that could be run from installation if we install everything in a bash script. for example, you could use ./file.sh to automatically execute the script if it is executable, so if we install something with a bash script, that same script could use this to automatically execute the script we got.