RE: Cool shell tricks (was: Re: file system questions)

2000-10-22 Thread Avishay Aton
Hi, try this site for lots of tips an tricks http://www.linux.com/tuneup [Avishay Aton] > -Original Message- > From: Shaul Karl [SMTP:[EMAIL PROTECTED]] > Sent: Sunday, October 22, 2000 1:36 AM > To: [EMAIL PROTECTED] > Subject: Re: Cool shell tricks

Re: Cool shell tricks (was: Re: file system questions)

2000-10-21 Thread Shaul Karl
> On Sat, Oct 21, 2000 at 08:23:44AM +0200, Shaul Karl wrote: > > > Also, seems that not many people are aware of "process substitution" > > > in bash: you do something like "diff <(ls dir1) <(ls dir2)", and bash > > > runs two ls's, each writing to a FIFO, and diff gets the names of > > > these t

Re: Cool shell tricks (was: Re: file system questions)

2000-10-21 Thread Nadav Har'El
On Sat, Oct 21, 2000, Adi Stav wrote about "Re: Cool shell tricks (was: Re: file system questions)": > True... You can't. It would've been nice if Bash had the option to use > temporary files rather than FIFOs... But I don't know if it's needed > tha

Re: Cool shell tricks (was: Re: file system questions)

2000-10-21 Thread Adi Stav
On Sat, Oct 21, 2000 at 08:23:44AM +0200, Shaul Karl wrote: > > Also, seems that not many people are aware of "process substitution" > > in bash: you do something like "diff <(ls dir1) <(ls dir2)", and bash > > runs two ls's, each writing to a FIFO, and diff gets the names of > > these two FIFOs a

Re: Cool shell tricks (was: Re: file system questions)

2000-10-21 Thread Nadav Har'El
On Fri, Oct 20, 2000, Adi Stav wrote about "Cool shell tricks (was: Re: file system questions)": > On Tue, Oct 17, 2000 at 04:59:48PM +0200, guy keren wrote: > > there is a dirty method you could use. every once in a while (perhaps even > > via a cron job), execute the

Re: Cool shell tricks (was: Re: file system questions)

2000-10-20 Thread Shaul Karl
> On Tue, Oct 17, 2000 at 04:59:48PM +0200, guy keren wrote: > > there is a dirty method you could use. every once in a while (perhaps even > > via a cron job), execute the command: > > > > :>/path/to/.xsession-error > > Cool. > > I love these little shell tricks... I'm personally particularly

Cool shell tricks (was: Re: file system questions)

2000-10-20 Thread Adi Stav
On Tue, Oct 17, 2000 at 04:59:48PM +0200, guy keren wrote: > there is a dirty method you could use. every once in a while (perhaps even > via a cron job), execute the command: > > :>/path/to/.xsession-error Cool. I love these little shell tricks... I'm personally particularly fond of the old "(