|
[arachne]
||
[Date Prev]
[10-2005 Date Index]
[Date Next]
||
[Thread Prev]
[10-2005 Thread Index]
[Thread Next]
[arachne] sed & awk (was My misbehaving ISP)
- From: Rob <robo13@xxxxxxxxxxx>
- To: arachne@xxxxxxxxxxxxx
- Date: Fri, 7 Oct 2005 18:21:35 -0500 (CDT)
Arachne at FreeLists---The Arachne Fan Club!
O'Reilly's "sed & awk" is a good manual about both,
altho it is geared towards the Unix/Linux thing.
http://www.oreilly.com/catalog/sed2/
Rob:
--
--------Pine Email - Powered by NetBSD--------
On Sat, 8 Oct 2005, Fitzgerrell Kevin wrote:
Arachne at FreeLists---The Arachne Fan Club!
BTW, if anyone knows of a good freeware program that will
automagically
apply the ">" prefixes to all the lines of a text file, please let
me
know about it.
AWK for DOS can be used for text manipulation. It comes from Unix
and is typically powerful but a bit geeky.
sed for DOS is another easy way to do this at the command line. Syntax
varies a little with the different versions, but should look something
like this:
sed "s/^/> /" filename.ext > newfile.ext
sed - calls the stream editor
s - substitute command
^ is a regular expression matching the beginning of each line
Regards,
Kevin FitzGerrell
____________________________________________________
Do you Yahoo!?
Find a local business fast with Yahoo! Local Search
http://au.local.yahoo.com
Arachne at FreeLists
-- Arachne, The Web Browser/Suite for DOS and Linux --
Arachne at FreeLists
-- Arachne, The Web Browser/Suite for DOS and Linux --
|