From bbc223d28d1f900dd17221ecd62319e5f8b98b7b Mon Sep 17 00:00:00 2001 From: Henry <Henry> Date: Fri, 13 Mar 2015 17:56:52 +0000 Subject: [PATCH] Replace xargs -i with xargs -I as the -i option is deprecated --- .../incompressible/pisoFoam/les/motorBike/lesFiles/Allrun | 6 +++--- .../incompressible/pisoFoam/les/motorBike/motorBike/Allrun | 2 +- tutorials/incompressible/simpleFoam/motorBike/Allrun | 4 ++-- tutorials/incompressible/simpleFoam/turbineSiting/Allrun | 2 +- wmake/wcleanAll | 2 +- wmake/wcleanMachine | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tutorials/incompressible/pisoFoam/les/motorBike/lesFiles/Allrun b/tutorials/incompressible/pisoFoam/les/motorBike/lesFiles/Allrun index 769a0e506ba..97141c33eb8 100755 --- a/tutorials/incompressible/pisoFoam/les/motorBike/lesFiles/Allrun +++ b/tutorials/incompressible/pisoFoam/les/motorBike/lesFiles/Allrun @@ -7,9 +7,9 @@ cp ../lesFiles/fvS* ../lesFiles/controlDict system/ cp ../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 runParallel pisoFoam 8 diff --git a/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/Allrun b/tutorials/incompressible/pisoFoam/les/motorBike/motorBike/Allrun index 8f1c8723116..deb3e65fbb4 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 d188343788e..dfd8c4d523c 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 9ae8bde9af8..d8e20e4da2e 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 9b8b728f5a4..c4b1d6e6ad8 100755 --- a/wmake/wcleanAll +++ b/wmake/wcleanAll @@ -69,7 +69,7 @@ rm -rf platforms/* echo "Cleaning Make sub-directories" 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 directories" diff --git a/wmake/wcleanMachine b/wmake/wcleanMachine index 1079b734a3f..ed67c87fa64 100755 --- a/wmake/wcleanMachine +++ b/wmake/wcleanMachine @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation +# \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation # \\/ M anipulation | #------------------------------------------------------------------------------- # License @@ -79,7 +79,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 -- GitLab