Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for file in `cat filelist`; do
- PROTOCOLS1=`egrep -i 'rsh|rsync|remsh' "$file" | egrep -v '^[ | ]*#'`
- FIELDS=`echo $PROTOCOLS1|wc -l`
- if [[ $FIELDS -gt 1024 ]]; then
- echo $file >> $debuglog
- else
- set -A myarray $PROTOCOLS1
- do stuff.....
- fi
- done
- myserver-v1> echo $variable
- myserver-v1> /usr/bin/echo: too many args
- echo $variable
- if [[ $? -ne 0 ]]; then
- write to error log
- fi
- [[ ! `echo $variable ]]
- [[ `echo $variable ]]
- FIELDS=`echo $PROTOCOLS1|wc -l`
- FIELDS=1
- FIELDS=$(echo "$PROTOCOLS1" | wc -l)
- FIELDS=$(egrep -i 'rsh|rsync|remsh' "$file" | egrep -c -v '^[ | ]*#')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement