# 2025-01-21-NCL Unix Shell ### This document: # https://hackmd.io/@rseteam-ncl/2025-01-21-NCL ### JupyterHub: # [http://20.0.183.29](http://20.0.183.29/hub/login?next=%2Fhub%2F) ### Links: - [Code of Conduct](https://docs.carpentries.org/policies/coc/) - [Workshop website](https://nclrse-training.github.io/2025-01-21-NCL/) - [Link to lesson website](https://swcarpentry.github.io/shell-novice/) - [Link to data](https://swcarpentry.github.io/shell-novice/data/shell-lesson-data.zip) - [Pre-workshop survey](https://carpentries.typeform.com/to/wi32rS?slug=2025-01-21-NCL) - [Post-workshop survey](https://carpentries.typeform.com/to/UgVdRQ?slug=2025-01-21-NCL) - [Code Community](https://teams.microsoft.com/l/team/19%3aG79Rz7Mhk6rC0mhia04YCD-nj7WabLMxhnyb1YLp04A1%40thread.tacv2/conversations?groupId=7059214c-2200-4ad6-a739-9d350c74c7a9&tenantId=9c5012c9-b616-44c2-a917-66814fbe3e87) ### Attendance: ## Please sign in using your <span style="color:red">university email</span> and your <span style="color:red">name</span>: ## Instructors and helpers 1. jannetta.steyn@newcastle.ac.uk, Jannetta Steyn 2. john.schoneboom@newcastle.ac.uk, John Schoneboom 12. carol.booth2@newcastle.ac.uk, Carol Booth ## More courses https://rse.ncldata.dev/events ## Useful Software https://nclrse-training.github.io/2025-01-21-NCL/#setup Git Bash (can be installed on Uni computers) MobaXterm : https://mobaxterm.mobatek.net/download-home-edition.html (Portable Edition can be installed without admin) ### loops using the contents of a file (our experiment!) https://swcarpentry.github.io/shell-novice/05-loop.html There are other ways of using files instead of typing a long list to input into a loop but this is what we tried: We can use a file (filename.txt) with a list inside it using ``$(cat filename.txt)`` or ``` `cat filename.txt` ``` at the start of our loop, like this: ``` for number in `cat filename.txt` do echo $number done ``` #### another way to use a list of numbers `for n in $(seq 0 100) ; do echo $n ; done` # Feedback ## What have we done well? 1. _really good content and pace of deliver 2. _ Very broad overview of important functions in Unix 3. Comprehensive and engaging 4. engaging format 5. Very informative, definitely covered tips and tricks I had no idea about despite using linux on and off over the years. ## What can we improve on? 1. _ Faster pace/less focus on covering every single feature of each function 2. _ 3. Some details were over-explained and could have been shortened and kept relatively breif; could survey the level of the class and tailor course to it.