Spotlight replacement

From: cele_82 (cele_8...)

Hi,
I'm looking for a one liner to add to my .bashrc as function so I can
search for multiple words on a filename list.(my notes)


An alias like this works already on a single string.

alias notes='ls -l ~/Notes/ | grep -i $1


I would like to find a way to make the line above work with multiple
search terms in an AND logic operation...

using [email protected] instead of $i won't work.

I've tried

ls -l ~/Notes/ | for i in "[email protected]"; do grep $i; done;

but only the first search term gets filtered..




Ideas ?

Share |