[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FreeBSD Security Advisory FreeBSD-SA-03:99.freebsd-sa



Y"KNOW, sed accepts filenames as arguments.

(it also really doesn't need the -e)

Love,
Picky.In.NewYork.

> Execute the following commands:
> 
> a) for advisories issued before 2000:
> 
>  % cat /path/to/FreeBSD-SA-XX:XX.txt.asc\
>    | sed -e 's/FreeBSD-SA-\([0-9]*\):\([0-9]*\)/FreeBSD-SA-19\1:\2/g'
> 
> b) for advisories issued between 2000 and 2099:
> 
>  % cat /path/to/FreeBSD-SA-XX:XX.txt.asc\
>    | sed -e 's/FreeBSD-SA-\([0-9]*\):\([0-9]*\)/FreeBSD-SA-20\1:\2/g'
> 
> c) for advisories issued after 2100:
> 
>  % cat /path/to/FreeBSD-SA-XX:XX.txt.asc\
>    | sed -e 's/FreeBSD-SA-\([0-9]*\):\([0-9]*\)/FreeBSD-SA-21\1:\2/g'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-chat/attachments/20030405/de11eb1e/attachment.bin

Visit your host, monkey.org