From bce6b7a728082708488f4645822b1854290f2a1b Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Tue, 18 Jul 2017 15:25:48 +0100 Subject: [PATCH] foamSequenceVTKFiles: generalize method to list files chronologically Patch contributed by Bruno Santos Resolves bug-report https://bugs.openfoam.org/view.php?id=2615 --- bin/foamSequenceVTKFiles | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/foamSequenceVTKFiles b/bin/foamSequenceVTKFiles index c1e4952972..de4193285a 100755 --- a/bin/foamSequenceVTKFiles +++ b/bin/foamSequenceVTKFiles @@ -112,9 +112,9 @@ do # Create list of VTK files, ordered by time step file_list=$(echo "$files" | \ tr " " "\n" | \ - grep "$n.vtk" | \ + grep -w "$n\.vtk" | \ awk -F'/' '{print($(NF-1)" "$0)}' | \ - sort -k 1 -g | \ + LC_ALL=C sort -k 1 -g | \ cut -d' ' -f2) i=0