Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2930

Find a directory with a prefix in name

$
0
0

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?


Viewing all articles
Browse latest Browse all 2930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>