diff --git a/bin/foamPackMake b/bin/foamPackMake index d6767a69..7f5cd59c 100755 --- a/bin/foamPackMake +++ b/bin/foamPackMake @@ -150,7 +150,7 @@ esac trap 'rm -f $packFile 2>/dev/null' INT find -H $packDir -depth -name Make -type d -print | \ - xargs -I find '{}' -depth -name "$archOptions*" -type d -print | \ + xargs -I {} find '{}' -depth -name "$archOptions*" -type d -print | \ tar $tarOpt $packFile -T - if [ $? -eq 0 ] diff --git a/bin/touchdep b/bin/touchdep index 7039ff6a..e5397408 100755 --- a/bin/touchdep +++ b/bin/touchdep @@ -87,8 +87,8 @@ do then echo "touching all .dep files under Make/$WM_OPTIONS* : $i" find $i -depth -name Make -type d -print | \ - xargs -I find '{}' -depth -name "$WM_OPTIONS*" -type d -print | \ - xargs -I find '{}' -name '*.dep' -type f -print | \ + xargs -I {} find '{}' -depth -name "$WM_OPTIONS*" -type d -print | \ + xargs -I {} find '{}' -name '*.dep' -type f -print | \ xargs -t touch else echo "touching all .dep files: $i" diff --git a/bin/toucho b/bin/toucho index 7aaa5a26..120f7138 100755 --- a/bin/toucho +++ b/bin/toucho @@ -83,8 +83,8 @@ do then echo "touching all .o files under Make/$WM_OPTIONS* : $i" find $i -depth -name Make -type d -print | \ - xargs -I find '{}' -depth -name "$WM_OPTIONS*" -type d -print | \ - xargs -I find '{}' -name '*.o' -type f -print | \ + xargs -I {} find '{}' -depth -name "$WM_OPTIONS*" -type d -print | \ + xargs -I {} find '{}' -name '*.o' -type f -print | \ xargs -t touch else echo "touching all .o files: $i" diff --git a/tutorials/incompressible/pisoFoam/les/motorBike/lesFiles/Allrun b/tutorials/incompressible/pisoFoam/les/motorBike/lesFiles/Allrun index 382fa3d5..b7170de6 100755 --- a/tutorials/incompressible/pisoFoam/les/motorBike/lesFiles/Allrun +++ b/tutorials/incompressible/pisoFoam/les/motorBike/lesFiles/Allrun @@ -8,13 +8,13 @@ cp ../lesFiles/fvS* ../lesFiles/controlDict system/ cp ../lesFiles/LESProperties ../lesFiles/turbulenceProperties constant/ -ls -d processor* | xargs -I rm -rf ./{}/0 $1 -ls -d processor* | xargs -I mv ./{}/500 ./{}/0 $1 -ls -d processor* | xargs -I rm -rf ./{}/0/uniform $1 +ls -d processor* | xargs -I {} rm -rf ./{}/0 $1 +ls -d processor* | xargs -I {} mv ./{}/500 ./{}/0 $1 +ls -d processor* | xargs -I {} rm -rf ./{}/0/uniform $1 -ls -d processor* | xargs -I cp ../lesFiles/LESProperties ./{}/constant/ $1 -ls -d processor* | xargs -I cp ../lesFiles/turbulenceProperties ./{}/constant/ $1 -ls -d processor* | xargs -I cp ../lesFiles/nuSgs ./{}/0/ $1 +ls -d processor* | xargs -I {} cp ../lesFiles/LESProperties ./{}/constant/ $1 +ls -d processor* | xargs -I {} cp ../lesFiles/turbulenceProperties ./{}/constant/ $1 +ls -d processor* | xargs -I {} cp ../lesFiles/nuSgs ./{}/0/ $1 runParallel pisoFoam 8 diff --git a/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/Allrun b/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/Allrun index 381f9c90..893aaac5 100755 --- a/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/Allrun +++ b/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/Allrun @@ -19,7 +19,7 @@ runParallel snappyHexMesh 8 -overwrite -parallel find . -type f -iname "*level*" -exec rm {} \; -ls -d processor* | xargs -I cp -r 0.org ./{}/0 $1 +ls -d processor* | xargs -I {} cp -r 0.org ./{}/0 $1 runParallel renumberMesh 8 -overwrite diff --git a/tutorials/incompressible/simpleFoam/motorBike/Allrun b/tutorials/incompressible/simpleFoam/motorBike/Allrun index db60fbf4..74d70ca7 100755 --- a/tutorials/incompressible/simpleFoam/motorBike/Allrun +++ b/tutorials/incompressible/simpleFoam/motorBike/Allrun @@ -17,8 +17,8 @@ runParallel snappyHexMesh 6 -overwrite #cp -r 0.org 0 > /dev/null 2>&1 #- For parallel running -ls -d processor* | xargs -I rm -rf ./{}/0 -ls -d processor* | xargs -I cp -r 0.org ./{}/0 +ls -d processor* | xargs -I {} rm -rf ./{}/0 +ls -d processor* | xargs -I {} cp -r 0.org ./{}/0 runParallel patchSummary 6 runParallel potentialFoam 6 -noFunctionObjects diff --git a/tutorials/incompressible/simpleFoam/turbineSiting/Allrun b/tutorials/incompressible/simpleFoam/turbineSiting/Allrun index 4b407535..12c7d5fb 100755 --- a/tutorials/incompressible/simpleFoam/turbineSiting/Allrun +++ b/tutorials/incompressible/simpleFoam/turbineSiting/Allrun @@ -16,7 +16,7 @@ runParallel snappyHexMesh 4 -overwrite find . -type f -iname "*level*" -exec rm {} \; -ls -d processor* | xargs -I cp -r 0.org ./{}/0 $1 +ls -d processor* | xargs -I {} cp -r 0.org ./{}/0 $1 runParallel topoSet 4 runParallel `getApplication` 4 diff --git a/wmake/wcleanAll b/wmake/wcleanAll index 20873ac7..a58b6a01 100755 --- a/wmake/wcleanAll +++ b/wmake/wcleanAll @@ -66,7 +66,7 @@ find . -name '*.dep' -exec rm {} \; echo "Cleaning Make subdirectories" find . -depth \( -name Make -o -name "Make.[A-Za-z]*" \) -type d -print | \ - xargs -I find '{}' -mindepth 1 -maxdepth 1 -type d -print | \ + xargs -I {} find '{}' -mindepth 1 -maxdepth 1 -type d -print | \ xargs rm -rf echo "Removing lnInclude and intermediate directories" diff --git a/wmake/wcleanMachine b/wmake/wcleanMachine index d0e15208..6971669c 100755 --- a/wmake/wcleanMachine +++ b/wmake/wcleanMachine @@ -77,7 +77,7 @@ do echo "Cleaning machine type: $machType" find . -depth \( -name Make -o -name "Make.[A-Za-z]*" \) -type d -print | \ - xargs -I find '{}' -mindepth 1 -maxdepth 1 \ + xargs -I {} find '{}' -mindepth 1 -maxdepth 1 \ \( -type d -name "*$machType" -o -name "*$machType$WM_MPLIB" \) \ -print | xargs rm -rf