Search Results

Search: Posts Made By: TheGreatGizmo
4,123
Posted By Chubler_XL
continue just resumes at the next iteration of...
continue just resumes at the next iteration of the enclosing for loop. In this particular code that means stop processing the current file and start processing the next file.

The current code is...
4,123
Posted By Chubler_XL
Could you avoid bash4 (and globstar) requirement...
Could you avoid bash4 (and globstar) requirement by replacing:

shopt -s globstar

for file in ./**; do
[ -f "$file" ] || continue # only "regular" files

with


find . -type f...
4,123
Posted By neutronscott
This would take some work to keep them in...
This would take some work to keep them in subdirs. I see you already use the globstar ./** for recursion but didn't include the shopt -s globstar
This is bash4 feature, so let's write bash code and...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 09:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy