Originally Posted By: Tomao
I've edited it again because of a couple of overlooked matters.


Originally Posted By: Test.mrc
;balias
;calias
;dalias
;alias me return me
alias you return you


Your alias will match 5 times (3, if you subtract)

Using regex is a better choice.

Edit:

Using starbucks_mafia regex:

Code:
alias find {
  var %file = $scriptdir $+ $$1
  window -h @-
  filter -gfw %file @- /^\s*\/*[!\.]*alias\s+(-l|[^-])/
  echo -sc info * There are $iif($filtered > 1,$v1 matches,$v1 match) found in %file
  close -@-
}

Last edited by Crinul; 03/03/11 08:33 PM.