5
rated 0 times
[
5]
[
0]
/ answers: 1 / hits: 863
/ 3 Years ago, wed, august 4, 2021, 5:23:55
Say I have the following files:
foo.coffee
foo.js
bar.js
Is there an easy way how to rm *.js
if there's a corresponding .coffee
file? In the example such a command would remove foo.js
leaving:
foo.coffee
bar.js
I'm looking for some sort of a rm
wrap as I need to do a recursive rm -r
.
More From » bash