linux - bash script read all the files in directory -
How do I loop through a directory? I know that there is Any help would be appreciated. A simple loop should work: < See < / P> > for f in / var / files, then $ f; Done; The problem is that it will spit all the files inside the directory at once. I want to go one after another and am able to do something with the $ f variable. I think when the loop will be the best fit for that, but I can not understand how to actually write a loop.
Comments
Post a Comment