5 lines
129 B
Bash
5 lines
129 B
Bash
|
#!/bin/sh
|
||
|
N=`grep '^STARTCHAR' "$1" | wc -l`
|
||
|
#echo $N
|
||
|
mv "$1" "$1.1orig"
|
||
|
awk -e '$1=="CHARS" {$2='$N'}; {print}' "$1.1orig" >"$1"
|