Viewing 1 to 3 of 3 items
Tag Archives: Linux Shell

grep inside for-loop

dont use capital letter vars. those are better used by the environment. never try to parse ls output. use globbing instead. if you’re writting bash, then prefer [[ over [. do not cat file to read it. instead read it in a while loop. always quote your variables. they’re also easier found if grouped. treat a list of files, as an array. if you  Full Article…