Date: Mon, 26 Feb 2007 21:46:53 -0600 From: Jeffrey Goldberg <jeffrey@goldmark.org> To: Kelly Jones <kelly.terry.jones@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Effectively detaching 'less' from a pipe Message-ID: <B1EF3261-51BA-4B3D-A4F7-A5AA438EE306@goldmark.org> In-Reply-To: <26face530702261927w553488a1uae8629aa3d827497@mail.gmail.com> References: <26face530702261927w553488a1uae8629aa3d827497@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[I've removed the lists for which I'm not a member] On Feb 26, 2007, at 9:27 PM, Kelly Jones wrote: > I often run commands piped to 'less', to make sure the command is > working OK by looking at the first few lines of output. > > Once I'm convinced, though, I'd like to "get rid" of less, and just > have the rest of stdout spewed to the terminal (and/or /dev/null > and/or to a file I specify). > > In other words, I want to stop hitting 'space' until my program > terminates. > > How can I do this? man tee so command | tee outputfile | less Then :q out of less when you are done and the output will have gone to outputfile -j -- Jeffrey Goldberg http://www.goldmark.org/jeff/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B1EF3261-51BA-4B3D-A4F7-A5AA438EE306>