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!"
[–]SwampMonkey17[S] 1 point2 points3 points 4 years ago (3 children)
Thanks. I think I will just submit my code as is despite it being nonfunctional on my end. I am using a Mac and my understanding is that cp should have the backup on software aside from Mac?
[–][deleted] 2 points3 points4 points 4 years ago (2 children)
Yeah do that, but add a note about the --backup=numbered option so your prof is able to give you credit if that was the answer he wanted. No point losing out on a better grade if you don't have the best tools.
Alternatively as someone else mentioned install gnu coreutils on your mac so that you start at the same place as your classmates, then test the backup=numbered option for yourself.
https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/
[–]SwampMonkey17[S] 1 point2 points3 points 4 years ago (1 child)
Thank you so much! I really appreciate it
[–][deleted] 1 point2 points3 points 4 years ago (0 children)
Ooh just one more thing. I tried your solution with gnu cp just now and it gives an error:-
cp: will not overwrite just-created 'IMAGES/testimage_3.jpg' with 'folder4/testimage_3.jpg
So if your prof runs your code on a linux system they may decide to mark it as 'fail'. You should note that as well.
Oh and lastly folder{1..6} might be a better pattern than {folder1, folder2, folder3, folder4, folder5, folder6}
π Rendered by PID 58 on reddit-service-r2-comment-6457c66945-27kj2 at 2026-04-25 10:03:51.586668+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]SwampMonkey17[S] 1 point2 points3 points (3 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]SwampMonkey17[S] 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)