Duplicate and rename files with matching names but different extensions in bash?
1
vote
3
answers
73
views
Is there some *simple* way to duplicate both
.cpp
and .h
files (or any multitude of extensions) simultaneously in bash
, instead of:
cp foo.cpp bar.cpp
cp foo.h bar.h
I'm not looking for shell script answers or complicated find
syntax or anything like that; I'm just wondering if there's something maybe built into bash
that does this in a simple way.
Asked by BrandonL
(180 rep)
Feb 27, 2025, 05:46 PM
Last activity: Mar 8, 2025, 08:53 AM
Last activity: Mar 8, 2025, 08:53 AM