how i can write bash file to Find files (number and name of files are variable) inside the folder and save the file names in variables ?
Asked
Active
Viewed 363 times
1 Answers
0
Put them in an array.
files=(*)

Ignacio Vazquez-Abrams
- 45,939
- 6
- 79
- 84
-
but how i can find it (search about it) inside the folder then i will save it – Mohammad AL-Rawabdeh Nov 25 '10 at 11:16
-
... What does that even mean? – Ignacio Vazquez-Abrams Nov 25 '10 at 11:17
-
bash to proccess all files example for what bash do ? folder x contain 5 files bash search fild file no.1 and save name of it in variable y=no.1 ... this bash finshed its work when visit all files – Mohammad AL-Rawabdeh Nov 25 '10 at 11:56
-
1... That didn't help. Just use the array. – Ignacio Vazquez-Abrams Nov 25 '10 at 11:57