I'm trying to search for file that match a given pattern using grep.
This works fine when typed directly into the terminal, returns all files with "zips" in the path.
svn st -u ~/includes ~/scripts ~/htdocs/intra ~/htdocs/update ~/htdocs/sponsor ~/survey ~/htdocs/coupon | grep "zips"
I want to add this functionality to a bash script so I can just call check zips
This is what I've got, but it's ignoring everything after the pipe and returning all output of the first command.
#!/bin/bash
QU=$1
svn st -u ~/includes ~/scripts ~/htdocs/intra ~/htdocs/update
~/htdocs/sponsor ~/survey ~/htdocs/coupon | grep "$QU"
How can I get this bash script to honor the grep call?
svn st -u ~/includes ~/scripts ~/htdocs/intra ~/htdocs/update ~/htdocs/sponsor ~/survey ~/htdocs/couponand ignores the ` | grep "$QU"`