An introduction

This is a semi-public place to dump text too flimsy to even become a blog post. I wouldn't recommend reading it unless you have a lot of time to waste. You'd be better off at my livejournal. I also have another blog, and write most of the French journal summaries at the Eurozine Review.

Why do I clutter up the internet with this stuff at all? Mainly because I'm trying to get into the habit of displaying as much as possible of what I'm doing in public. Also, Blogger is a decent interface for a notebook

Thursday, July 1, 2010

finding and editing

Search for files containing some text, open them in vim (one per tab)

 grep -l foo ./* | xargs vim -p


Alternatively, to get a single-line list that can be edited and then copy-pasted to a command-line:

grep -l foo ./* | xargs echo


There are more heavy-duty ways of removing lines in output listed here, but I see little reason for using them.t

No comments:

Post a Comment