search all files in a directory and get their full path using bash script -
i have directory construction this.abc/123, abc/456, abc/789 , in each of numbered directories have many files.what want able search files named xyz.txt found in numbered directories abc directory , total paths on variable or on array using script.
you can try:
cd "abc" array=($(find "$pwd" -type f -name "xyz.txt"))
bash
No comments:
Post a Comment