this post was submitted on 07 Jun 2024
4 points (62.5% liked)
#!/bin/bash
77 readers
1 users here now
A community to discuss about Bash.
Bash is a Unix shell and command language written by Brian Fox for the GNU Project as a free software replacement for the Bourne shell. The shell's name is an acronym for Bourne-Again SHell, a pun on the name of the Bourne shell that it replaces and the notion of being "born again".
Keep discussion limited to Bash and projects around it. Feel free to share resources, self-projects, tutorials or any other cool stuff related to Bash.
Icon Attribution : Free Software Foundation, FAL, via Wikimedia Commons.
founded 10 months ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Maybe a little more context of what you want to run would help here. Find would work.
find . -name "*.png" -exec whateveryouwanttodohere {} \;
Or you could find, and then pass the arguments to xargs:
find . -name "*.png" -print | xargs whateveryouwanttodohere