File: insertmenu

package info (click to toggle)
sprng 2.0a-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,076 kB
  • ctags: 2,031
  • sloc: ansic: 30,361; fortran: 1,618; makefile: 566; cpp: 58; sh: 5
file content (15 lines) | stat: -rwxr-xr-x 255 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if ! [ -f $6 ]
then
  cat $5 > $6 
fi

s=`grep -c "$2     --- $3" $6`

if [ $s = "0" ]
then
  echo -e "        $1   $2     --- $3 $4" >> $6
# on some systems use echo without '-e'
# uncomment the next line
# echo "        $1   $2     --- $3 $4" >> $6

fi