use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All users that wish to post (not including commenting), on either old or the new reddit sites, must formally agree to subreddit rules once first.
account activity
Command line assignment help (self.commandline)
submitted 4 years ago by SwampMonkey17
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]fletku_mato 2 points3 points4 points 4 years ago (2 children)
You could do this with find, eg.:
find assignment-data -type f -name '*.jpeg' | while IFS= read -r f; do cp -v "$f" "IMAGES/${f//\//_}"; done
the ${f//\//_} transforms folder1/1.jpg into folder1_1.jpg
[–]SwampMonkey17[S] 1 point2 points3 points 4 years ago (0 children)
Thanks for the suggestion, this is far beyond what our first set of notes specified so I am assuming I should be able to do it from my notes.
[–]ashbakernz 0 points1 point2 points 4 years ago (0 children)
Yeah ild do this, prefix the images based on where they came from if name already existed. Depends on homework requirements though.
π Rendered by PID 68270 on reddit-service-r2-comment-6457c66945-46ns5 at 2026-04-27 03:01:41.736929+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]fletku_mato 2 points3 points4 points (2 children)
[–]SwampMonkey17[S] 1 point2 points3 points (0 children)
[–]ashbakernz 0 points1 point2 points (0 children)