Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unix Shell Script, Finding things, Tractknig a species, grep -r #1458

Open
jrteuton opened this issue Jul 18, 2024 · 1 comment
Open

Unix Shell Script, Finding things, Tractknig a species, grep -r #1458

jrteuton opened this issue Jul 18, 2024 · 1 comment

Comments

@jrteuton
Copy link

How could the content be improved?

For the class challenge "Tracking a species" the class materials never explicitly introduced the way grep includes "filename :" into its output when parsing a directory with multiple files. The lesson materials have only a single .csv file in the directory. The students all readily understood "cut -d ," for using the comma delimiter; but did not understand why they would want to use "cut -d :" when the data format in the .CSV and as presented in the lesson web page did not contain a ":" As an Instructor I failed to exlpain what grep would do with the -r flag, that it adds the file name and a : which would need to be "cut" away with the cut -d : instruction. Many students tested their solutions on the command line in the animal-counts directory, pointing grep at the single .csv file, and when the "cut -d : " command appeared to add nothing to the process it casused confusion. I suggest the lesson materials get additional .csv files added and or part of the instruction explicitly call out what grep with the -r flag will out put. ... I now have this in my personal notes for the next time I teach the coruse.

Which part of the content does your suggestion apply to?

https://swcarpentry.github.io/shell-novice/instructor/07-find.html

@bkmgit
Copy link
Contributor

bkmgit commented Jul 19, 2024

Thanks for the observation @jrteuton . Could you make a pull request with an additional file and an improved explanation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants