also sprach Eric G. Miller [2001.12.30.0056 +0100]:
> Somewhat analogous, but a pipe is a stream of bytes that is not exactly
> analogous to passing by value, because if the program needs to move
> around in that byte stream, it still must copy the data...
i give you that. i was thinking of it mo
On Sun, 30 Dec 2001 00:14:30 +0100, martin f krafft <[EMAIL PROTECTED]> wrote:
> also sprach Eric G. Miller [2001.12.29.2350 +0100]:
> > C always uses pass by value, C++ can do both. But, what does that
> > have to do with shell scripts and pipes?
>
> C can pass by reference, no?
No. C always
On Sun, Dec 30, 2001 at 12:14:30AM +0100, martin f krafft wrote:
| also sprach Eric G. Miller [2001.12.29.2350 +0100]:
| > C always uses pass by value, C++ can do both. But, what does that
| > have to do with shell scripts and pipes?
|
| C can pass by reference, no?
No, but it can fake it good
also sprach Eric G. Miller [2001.12.29.2350 +0100]:
> C always uses pass by value, C++ can do both. But, what does that
> have to do with shell scripts and pipes?
C can pass by reference, no?
think about it: i pass by value when i pipe into a program, and i pass
by reference when i tell that sa
On Sat, 29 Dec 2001 20:08:06 +0100, martin f krafft <[EMAIL PROTECTED]> wrote:
> also sprach hanasaki <[EMAIL PROTECTED]> [2001.12.29.1955 +0100]:
> > Check out the differences in pass by value / pass by reference in c
> > and c++
>
> not bad. an interesting comparison!
C always uses pass by val
also sprach hanasaki <[EMAIL PROTECTED]> [2001.12.29.1955 +0100]:
> Check out the differences in pass by value / pass by reference in c
> and c++
not bad. an interesting comparison!
--
martin; (greetings from the heart of the sun.)
\ echo mailto: !#^."<*>"|tr "<*> mailto:"; [E
Check out the differences in pass by value / pass by reference in c and c++
David Z Maze wrote:
Lance Hoffmeyer <[EMAIL PROTECTED]> writes:
LH> I am trying to write a script and I need to remove the top 3 lines of a
LH> file. I thought tail would be the tool for the job.
LH>
LH> The script is
Lance Hoffmeyer <[EMAIL PROTECTED]> writes:
LH> I am trying to write a script and I need to remove the top 3 lines of a
LH> file. I thought tail would be the tool for the job.
LH>
LH> The script is:
LH>
LH> enscript -1 -r -M Letter -p outputfile $1
LH>
LH> I need tail to take off the top 3 line
On Sat, Dec 29, 2001 at 09:56:13AM -0600, Lance Hoffmeyer wrote:
| I am trying to write a script and I need to remove the top 3 lines of a
| file. I thought tail would be the tool for the job.
|
| The script is:
|
| enscript -1 -r -M Letter -p outputfile $1
|
| I need tail to take off the top 3
also sprach Lance Hoffmeyer <[EMAIL PROTECTED]> [2001.12.29.1656 +0100]:
> enscript -1 -r -M Letter -p outputfile `tail +3 $1`
>
> does not work. I have not had much experience at pipes and such (as one
> can plainly see). What modifications do I need to get this script to
> work?
have a look a
10 matches
Mail list logo