You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
302 B
12 lines
302 B
12 months ago
|
#!/bin/bash
|
||
|
# Author: Ravi Kumar P <ravi.pasumarthy@gmail.com>, Anoop Hallur <anoophallur@gmail.com>
|
||
|
|
||
|
# Check grep functionality with count of repititive words
|
||
|
|
||
|
t_Log "Running $0 - checking grep with count"
|
||
|
|
||
|
count=`echo -e "wow grep is working" | grep -c "wow"`
|
||
|
t_Log $count
|
||
|
|
||
|
t_Assert_Equals $count 1
|