edepsim-commands-text.sh
Go to the documentation of this file.
1 #!/bin/bash
2 
3 MACRO=`mktemp -t edepsim.XXXXXXXXXX` || exit 1
4 cat >> $MACRO <<EOF
5 /control/manual
6 EOF
7 
8 edep-sim $MACRO > edepsim-command.temp
9 
10 LINE=`grep -n "^Command directory path : /$" edepsim-command.temp | grep -o '[0-9]*'`
11 
12 tail -n +${LINE} edepsim-command.temp > edepsim-command.list
13 
14 rm edepsim-command.temp
15 rm $MACRO
16 
17 mv edepsim-command.list ../doc