Name: Anonymous 2012-02-27 13:29
How do I grep a given path and not the contents of the file in bash? ls won't work because the path is actually an input file, $1. Thanks.
{
if echo $1 | grep "lol" ; then
echo "fucking echo the filename then pipe it to your mom."
fi
}