Consider I have lots of shell scripts in a folder named test. I want to execute all the files in it except one particular file. what do I do? relocating the file or executing the file one after an other manually is not an option. Is there any way I could do this in single line. Or perhaps, adding something to sh path/to/test/*.sh, which executes all files?
Consider I have lots of shell scripts in a folder named test . I
Share
If you are using
bash, you can use extended patterns to skip the undesired script: