sed '-f' option

sed '-f' option

Post by Ron Solinsk » Fri, 02 Jul 1999 04:00:00



Is there a max filesize for the file used with 'sed -f filename'?
 
 
 

sed '-f' option

Post by Dav » Fri, 02 Jul 1999 04:00:00


I don't recall if there is a max file size, but I seem to remember
something that said you couldn't have a script more than 100 or so
lines.  IIRC, YMMV, ICBWOB (I could be way off base) ;->

I also seem to recall that there was a maximum line length.  1024?

Check the man page.

Cheers,
Dave

On Thu, 1 Jul 1999 14:51:22 -0400, "Ron Solinski"


> Is there a max filesize for the file used with 'sed -f filename'?

+---------------------+---------------+


+---------------------+---------------+

 
 
 

sed '-f' option

Post by Ken Pizzi » Sat, 03 Jul 1999 04:00:00


On Thu, 1 Jul 1999 14:51:22 -0400,


>Is there a max filesize for the file used with 'sed -f filename'?

What version of sed?  For GNU sed there is no built-in limit
(i.e., the size is limited by the amount of memory installed
on your system); at least one other sed has been known to balk
at scripts of as few as 100 commands.

                --Ken Pizzini

 
 
 

1. (sed 1q ; sed 2q) : no output from 2nd 'sed'

  In the two examples below, why does the second 'sed' produce no output when
the second 'dd' does : ?

$ echo '0
1
2
3
4' | (sed 1q ; sed 2q)
0
$

$ echo '0
1
2
3
4' | (dd bs=1 count=2 ; dd bs=1 count=4)
0
2+0 records in
2+0 records out
1
2
4+0 records in
4+0 records out
$

2. Samba

3. sed -e 's/\'a\'/\';\'/' ?

4. Still Can't Masquerade

5. Simple 'sed', 'awk', 'cut' problem

6. Mouse speed

7. '-i' option for 'cp' and 'mv'

8. WinTV USB

9. sed: -e expression #1, char 17: Unknown option to 's' =>Sed usage 's/^/usermod -s\/usr\/bin\/false /'

10. Apache patch to allow 'Options None' when Options override disallowed

11. 'diff' option like 'grep -q'?

12. menu option 'Y' or 'y'

13. How do I use Sed to replace pipe '|' with ','