• observantTrapezium@lemmy.ca
    link
    fedilink
    arrow-up
    4
    ·
    3 hours ago

    In addition to the other comments… These functions transverse the target subdirectories and try to copy/move files into themselves, which just won’t work but is a waste of time and you’re gonna see these errors. Just skip them like so find . -path ~/png -prune -o -iname "*.png" -exec ...

  • Onno (VK6FLAB)@lemmy.radio
    link
    fedilink
    arrow-up
    22
    ·
    6 hours ago

    Nothing says “I don’t care about my data.” more than the examples in the screenshot.

    What happens when two different files in different directions have the same name?

  • edinbruh@feddit.it
    link
    fedilink
    English
    arrow-up
    4
    ·
    5 hours ago

    May I interest you in the program I just wrote. I think you might like the subcommand type.

    I use it to automatically copy mime types “video” and extensions “.srt” from the Torrent folder to the jellyfin folder. The other two subcommands, I use them to save user dotfiles and system config files on git

  • db2@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    4 hours ago

    If you’re just trying to have a central location to find them you’d be better off symlinking them and making another macro that removes dead links.