Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../bin
File: gvmap.sh
#!/bin/sh
[0] Fix | Delete
[1] Fix | Delete
# Script for gvmap pipeline
[2] Fix | Delete
# Use -A to add flags for gvmap; e.g., -Ae results in gvmap -e
[3] Fix | Delete
# -K can be used to change the original layout; by default, sfdp is used
[4] Fix | Delete
# -T is used to specify the final output format
[5] Fix | Delete
# -G, -N and -E flags can be used to tailor the rendering
[6] Fix | Delete
# -g, -n and -e flags can be used to tailor the initial layout
[7] Fix | Delete
# Be careful of spaces in the flags. If these are not wrapped in quotes, the
[8] Fix | Delete
# parts will be separated during option processing.
[9] Fix | Delete
[10] Fix | Delete
LAYOUT=sfdp
[11] Fix | Delete
trap 'rm -f $TMPFILE1 $TMPFILE2 $TMPINFILE errout; exit' 0 1 2 3 15
[12] Fix | Delete
OPTSTR="vVA:[gvmap flags]G:[attr=val]E:[attr=val]N:[attr=val]g:[attr=val]e:[attr=val]n:[attr=val]K:[layout]T:[output format]o:[outfile]"
[13] Fix | Delete
FLAGS1=
[14] Fix | Delete
FLAGS2=
[15] Fix | Delete
FLAGS3=
[16] Fix | Delete
[17] Fix | Delete
while getopts ":$OPTSTR" c
[18] Fix | Delete
do
[19] Fix | Delete
case $c in
[20] Fix | Delete
v )
[21] Fix | Delete
VERBOSE=1
[22] Fix | Delete
FLAGS1="$FLAGS1 -v"
[23] Fix | Delete
FLAGS2="$FLAGS2 -v"
[24] Fix | Delete
FLAGS3="$FLAGS3 -v"
[25] Fix | Delete
;;
[26] Fix | Delete
V )
[27] Fix | Delete
dot -V
[28] Fix | Delete
exit 0
[29] Fix | Delete
;;
[30] Fix | Delete
K )
[31] Fix | Delete
LAYOUT=$OPTARG
[32] Fix | Delete
;;
[33] Fix | Delete
A )
[34] Fix | Delete
FLAGS2="$FLAGS2 -$OPTARG"
[35] Fix | Delete
;;
[36] Fix | Delete
T )
[37] Fix | Delete
FLAGS3="$FLAGS3 -T$OPTARG"
[38] Fix | Delete
;;
[39] Fix | Delete
e )
[40] Fix | Delete
FLAGS1="$FLAGS1 -E$OPTARG"
[41] Fix | Delete
;;
[42] Fix | Delete
n )
[43] Fix | Delete
FLAGS1="$FLAGS1 -N$OPTARG"
[44] Fix | Delete
;;
[45] Fix | Delete
g )
[46] Fix | Delete
FLAGS1="$FLAGS1 -G$OPTARG"
[47] Fix | Delete
;;
[48] Fix | Delete
E )
[49] Fix | Delete
FLAGS3="$FLAGS3 -E$OPTARG"
[50] Fix | Delete
;;
[51] Fix | Delete
N )
[52] Fix | Delete
FLAGS3="$FLAGS3 -N$OPTARG"
[53] Fix | Delete
;;
[54] Fix | Delete
G )
[55] Fix | Delete
FLAGS3="$FLAGS3 -G$OPTARG"
[56] Fix | Delete
;;
[57] Fix | Delete
o )
[58] Fix | Delete
FLAGS3="$FLAGS3 -o$OPTARG"
[59] Fix | Delete
;;
[60] Fix | Delete
:)
[61] Fix | Delete
print -u 2 $OPTARG requires a value
[62] Fix | Delete
exit 2
[63] Fix | Delete
;;
[64] Fix | Delete
\? )
[65] Fix | Delete
if [[ "$OPTARG" == '?' ]]
[66] Fix | Delete
then
[67] Fix | Delete
getopts -a gvmap "$OPTSTR" x '-?'
[68] Fix | Delete
exit 0
[69] Fix | Delete
else
[70] Fix | Delete
print -u 2 "gvmap: unknown flag $OPTARG - ignored"
[71] Fix | Delete
fi
[72] Fix | Delete
;;
[73] Fix | Delete
esac
[74] Fix | Delete
done
[75] Fix | Delete
shift $((OPTIND-1))
[76] Fix | Delete
[77] Fix | Delete
if [[ $# == 0 ]]
[78] Fix | Delete
then
[79] Fix | Delete
if [[ -n $VERBOSE ]]
[80] Fix | Delete
then
[81] Fix | Delete
print -u 2 "$LAYOUT -Goverlap=prism $FLAGS1 | gvmap $FLAGS2 | neato -n2 $FLAGS3"
[82] Fix | Delete
fi
[83] Fix | Delete
$LAYOUT -Goverlap=prism $FLAGS1 | gvmap $FLAGS2 | neato -n2 $FLAGS3
[84] Fix | Delete
else
[85] Fix | Delete
while (( $# > 0 ))
[86] Fix | Delete
do
[87] Fix | Delete
if [[ -f $1 ]]
[88] Fix | Delete
then
[89] Fix | Delete
if [[ -n $VERBOSE ]]
[90] Fix | Delete
then
[91] Fix | Delete
print -u 2 "$LAYOUT -Goverlap=prism $FLAGS1 $1 | gvmap $FLAGS2 | neato -n2 $FLAGS3"
[92] Fix | Delete
fi
[93] Fix | Delete
$LAYOUT -Goverlap=prism $FLAGS1 $1 | gvmap $FLAGS2 | neato -n2 $FLAGS3
[94] Fix | Delete
else
[95] Fix | Delete
print -u 2 "gvmap: unknown input file $1 - ignored"
[96] Fix | Delete
fi
[97] Fix | Delete
shift
[98] Fix | Delete
done
[99] Fix | Delete
fi
[100] Fix | Delete
[101] Fix | Delete
[102] Fix | Delete
[103] Fix | Delete
[104] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function