From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bvraghav@iitk.ac.in (B.V. Raghav) Newsgroups: gmane.emacs.help Subject: Re: grep excludes Date: Sat, 09 Jul 2016 19:46:20 +0530 Organization: Indian Institute of Technology, Kanpur Message-ID: <87poqmkibv.fsf@ram.bvr.dp.lan> References: <86d1mrjwl9.fsf@student.uu.se> <3e59d758-704a-4b17-875d-312c5b74d864@googlegroups.com> <87bn2b5hqe.fsf@ram.bvr.dp.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468073839 30366 80.91.229.3 (9 Jul 2016 14:17:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Jul 2016 14:17:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Rusi Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 09 16:17:08 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bLt48-0004jE-0x for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Jul 2016 16:17:08 +0200 Original-Received: from localhost ([::1]:51097 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLt47-0001tO-27 for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Jul 2016 10:17:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLt3f-0001t8-UQ for help-gnu-emacs@gnu.org; Sat, 09 Jul 2016 10:16:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLt3b-0005V7-ME for help-gnu-emacs@gnu.org; Sat, 09 Jul 2016 10:16:38 -0400 Original-Received: from mail3.iitk.ac.in ([202.3.77.190]:54814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLt3b-0005Ul-9O for help-gnu-emacs@gnu.org; Sat, 09 Jul 2016 10:16:35 -0400 Original-Received: from smtp.cc.iitk.ac.in (smtp.cc.iitk.ac.in [172.31.1.22]) by mail3.iitk.ac.in (Postfix) with ESMTP id B31DF10000AB; Sat, 9 Jul 2016 19:46:20 +0530 (IST) Original-Received: from ram.bvr.dp.lan.iitk.ac.in (unknown [172.20.240.119]) (Authenticated sender: bvraghav) by smtp.cc.iitk.ac.in (Postfix) with ESMTPA id B2FBA48; Sat, 9 Jul 2016 19:46:20 +0530 (IST) In-Reply-To: (Rusi's message of "Thu, 7 Jul 2016 20:05:55 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 202.3.77.190 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110748 Archived-At: Rusi writes: > lgrep -e emacs ~/vit-projects-common-wiki/ /dev/null > /bin/bash: lgrep: command not found Perhaps, aliases was not configured properly! > > and you can define lgrep and rgrep in your .bashrc (or .bash_aliases) as follows: ^^^^^^^^^^^^^^^^^^^^^^^^^^ this step is necessary > > alias lgrep='grep -n ' > > alias rgrep='grep -nR ' Try the following in your command line: $ alias lgrep alias lgrep='grep -n ' or something like that should be ouput. If this is not the case, The problem is about configuring your shell environment for emacs, not the emacs itself http://tldp.org/LDP/abs/html/aliases.html Thanks, r -- (B.V. Raghav) Ph.D. Student, Design Programme, IIT Kanpur