File: list_routing_models_examples.sh

package info (click to toggle)
simgrid 4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 38,980 kB
  • sloc: cpp: 123,583; ansic: 66,779; python: 8,358; java: 6,406; fortran: 6,079; f90: 5,123; xml: 4,587; sh: 2,337; perl: 1,436; makefile: 105; lisp: 49; javascript: 7; sed: 6
file content (14 lines) | stat: -rwxr-xr-x 389 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env sh

cd $(dirname $0)/../../

export LC_ALL=C

# -R -- we want to search recursively
# -l -- only filenames, nothing else
# $1 -- argument to this script, name of the routing model (e.g., "Floyd")
# .  -- search in the examples folder and search EVERYTHING
# --include -- but only include results that end in ".xml"
grep -R -l "$1" examples/ --include "*.xml" | sort

exit 0