You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Pipes and Filters episode, the "Removing Unneeded Files" exercise (part of the closing Nelle's Pipeline story), discusses raw files and the deletion of processed data files.
Suppose you want to delete your processed data files, and only keep your raw files and processing script to save storage. The raw files end in .dat and the processed files end in .txt. Which of the following would remove all the processed data files, and only the processed data files?
This is problematic in the following ways:
Nelle's example data only contains *.txt files (ignoring goo* and do-stats.sh)
Therefore it does not include any raw.dat files, only processed.txt files.
We only get stats-NENE*.txt processed files in the next episode; still no *.dat files.
The exploratory nature of the material invites learners to try commands out.
Use of the word 'Suppose' is insufficient to stop some people trying the commands.
The exercise *.txt files are inadvertently deleted by some attendees.
Suggest, moving to Episode 5 (Loops), keep in the Nelle's Pipeline section, and rewrite to reflect the processedstats-NENE*.txt that are produced and can be removed as unneeded files.
The text was updated successfully, but these errors were encountered:
All valid points, but I think there are enough exercises in the loops section already, and this exercise is to practice wildcards rather than loops.
It would however be good if the exercise could be tried by learners rather than it being just a thought experiment.
I'm reluctant to create more files in the data-shell directory though, because this lesson is scattered enough as it is. Perhaps it could be made clearer that this is a thought experiment, with instructions on how to create some files with touch, in order to try out the commands?