2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 1113
/ 2 Years ago, sat, july 16, 2022, 9:00:27
I have one big directory, that contains many subdirectories whose names are staring with 13xxx,10xxx,11xxx and so on. These directories contains text files with a name my_file.txt.
Now the problem is, I want to change the files in the directories 13xxx and 11xxx only and don't want to touch files in 10xxx directories.
I am trying to search directories with:
[ -d "13*"] && ..
[ -d "13"*] && ..
But seems like it doesn't work like this.
Can anyone provide a small code that solves this riddle?
More From » bash