From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 9 Feb 2005 21:40:43 -1000 From: Tim Newsham To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] tip o' the day In-Reply-To: <1108020075.2762.2.camel@pallas.invalid> Message-ID: References: <1108020075.2762.2.camel@pallas.invalid> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Topicbox-Message-UUID: 446bed0e-eace-11e9-9e20-41e7f4b1d025 Here are some simple shortcuts I find useful during development. fn f { du -a $* | sed 's/^.* //g' } <-- that whitespace is a tab Tree enumerator (simple "find") useful for many purposes fn s { lc *.[chsyl] } List out the sources in the current directory. Similar to an example in the rc paper if I remember correctly. fn gn { grep -n $* /dev/null } Grep, but force listing of filename:lineno so you can click on an entry to jump to it in an editor. fn g { grep -n $* *.[chsyl] /dev/null } gn on all sources in the current directory (how about a plumber command that ran grep -n on the files in the current directory and the include directory? Then you could plumb words to it in acme with mouse chording to quickly crossreference keywords in the src tree. I tried goofing with that once but failed pretty miserably). Tim N.