-
Delete lines of text
From
Killroy@VERT/CATACOMB to
All on Mon Jan 7 20:58:00 2008
I am looking to create a simple script that will delete the first and last ãlines of an ANSI file. Does anyone have any ideas?ããã---ã þ Synchronet þ The Catacomb BBS - catacombbbs.dyndns.orgã
-
From
Digital Man@VERT to
Killroy on Mon Jan 7 22:39:36 2008
Re: Delete lines of textã By: Killroy to All on Mon Jan 07 2008 08:58 pmãã > I am looking to create a simple script that will delete the first and lastã > lines of an ANSI file. Does anyone have any ideas?ããAnd you need this script to be written in Baja?ãã digital man (xbox-live: digitlman)ããSnapple "Real Fact" #18:ãA jellyfish is 95% water.ãNorco, CA WX: ---.-øF, --% humidity, NaN mph --- wind, --.-- inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Killroy@VERT/CATACOMB to
Digital Man on Tue Jan 8 12:22:00 2008
Re: Delete lines of textã By: Digital Man to Killroy on Mon Jan 07 2008 10:39 pmãã > > I am looking to create a simple script that will delete the first and lasã > > lines of an ANSI file. Does anyone have any ideas?ãã > And you need this script to be written in Baja?ããI guess it doesn't really have to be. A simple batch file would probably ãsuffice.ããã---ã þ Synchronet þ The Catacomb BBS - catacombbbs.dyndns.orgã
-
From
Angus McLeod@VERT/ANJO to
Killroy on Tue Jan 8 13:22:00 2008
Re: Delete lines of textã By: Killroy to All on Mon Jan 07 2008 20:58:00ãã > I am looking to create a simple script that will delete the first and lastã > lines of an ANSI file. Does anyone have any ideas?ãã sed '1d;$d' filename ãã:-)ãã---ãPlaying: "Empty" by "The Cranberries" from the "No need to argue" album.ã þ Synchronet þ Where we BAJA Rob into writing our modules. The ANJO
BBSã
-
From
Killroy@VERT/CATACOMB to
Angus McLeod on Tue Jan 8 20:18:00 2008
Re: Delete lines of textã By: Angus McLeod to Killroy on Tue Jan 08 2008 01:22 pmãã > > I am looking to create a simple script that will delete the first and lasã > > lines of an ANSI file. Does anyone have any ideas?ãã > sed '1d;$d' filenameããDoes't work. Is this a UNIX command?ããã---ã þ Synchronet þ The Catacomb BBS -
catacombbbs.dyndns.orgã
-
From
Digital Man@VERT to
Killroy on Tue Jan 8 17:40:48 2008
Re: Delete lines of textã By: Killroy to Angus McLeod on Tue Jan 08 2008 08:18 pmãã > Re: Delete lines of textã > By: Angus McLeod to Killroy on Tue Jan 08 2008 01:22 pmã > ã > > > I am looking to create a simple script that will delete the first and ã > > > lines of an ANSI file. Does anyone have any ideas?ã > ã > > sed '1d;$d' filenameã > ã > Does't work. Is this a UNIX command?ãã'sed' traditionally comes with *nixes, but you can also get it for Windows.ãe.g.
http://sourceforge.net/project/showfiles.php?group_id=9328, unxutils.zipãincludes a Win32 build of sed.ãã digital man (xbox-live: digitlman)ããSnapple "Real Fact" #20:ãBroccoli is the only vegetable that is also a flower.ãNorco, CA WX: ---.-øF, --% humidity, NaN mph --- wind, --.-- inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ
[vert/cvs/bbs].synchro.netã
-
From
Killroy@VERT/CATACOMB to
Angus McLeod on Tue Jan 8 22:00:00 2008
Re: Delete lines of textã By: Killroy to Angus McLeod on Tue Jan 08 2008 08:18 pmãã > > > I am looking to create a simple script that will delete the first andã > > > lines of an ANSI file. Does anyone have any ideas?ãã > > sed '1d;$d' filenameãã > Does't work. Is this a UNIX command?ããIt is now moot. I found a VBS that does what I want but it seems like Smegzot ãhas some code that removes the CTRL-L in the file. I will have to put up with ãthat annoying "SmegZOT v1.00 aRf" and "SmegWARE [Registered] in my logon.asc.ããã---ã þ Synchronet þ The Catacomb BBS -
catacombbbs.dyndns.orgã
-
From
Angus McLeod@VERT/ANJO to
Killroy on Thu Jan 10 00:03:00 2008
Re: Delete lines of textã By: Killroy to Angus McLeod on Tue Jan 08 2008 20:18:00ãã > > > I am looking to create a simple script that will delete the first and ã > > > lines of an ANSI file. Does anyone have any ideas?ã > ã > > sed '1d;$d' filenameã > ã > Does't work. Is this a UNIX command?ããYou can get 'sed' for windows. But I suppose, since it's usually a part ãof a base UNIX install, the answer is "yes".ãã---ãPlaying: "I'm tired" by "Bernard Butler" from the "People move on" album.ã þ Synchronet þ Where we BAJA Rob into writing our modules. The ANJO
BBSã
-
From
Angus McLeod@VERT/ANJO to
Killroy on Thu Jan 10 00:09:00 2008
Re: Delete lines of textã By: Killroy to Angus McLeod on Tue Jan 08 2008 22:00:00ãã > I will have to put up with that annoying "SmegZOT v1.00 aRf" and ã > "SmegWARE [Registered] in my logon.asc.ããSo the man from Kamloops is no longer appreciated! Pore ole Darryl. ããWell, maybe you could try ãã grep -v "\(SmegZOT\|SmegWARE\)" inputfile > outputfileããand see if... Oh. Sorry, I forgot.ãã---ãPlaying: "I'd do it again if I could" by "Bernard Butler"ã from the "Friends & lovers" album.ã þ Synchronet þ Where we BAJA Rob into writing our modules. The ANJO
BBSã
-
From
Jason Hud@VERT to
Killroy on Tue Jan 8 16:51:58 2008
To: Killroyã > I am looking to create a simple script that will delete the first and lastã > lines of an ANSI file. Does anyone have any ideas?ããããi'm thinking you have some bulletin generator and it has 'unregistered' ãversion, or something like that.ãããwhat i would recommend is a text replacement program that you can put in a ãbatchfile.ããi have a great one called 'xchange' if you want it.ããif the file is always the same length, you can use sometihng like 'tail' for ãyour windows OSãã .Ä.Ú Â Â ÂÂ.Ä. ÂÚ¿ã-³ ³Ã¿³ ³³ ³³³ ³³ ³À¿-ã `Ä'ÀÙÁÙÁ`\/'Á`Ä'À-ÙÀÙã+o edge of oblivion bbs þ eob-bbs.comã|04An underground bbs with tons of the best games+filesã|05a zer0net nodeã--- Synchronet 3.14a-Win32 NewsLink 1.85ã * Data Stream - garland texas -
telnet://dsbbs.synchro.netã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Ragnarok@VERT/DOCKSUD to
Angus McLeod on Fri Jan 11 20:05:00 2008
-
From
Jason Hud@VERT to
Digital Man on Sat Jan 12 00:24:42 2008
To: Digital Manã > 'sed' traditionally comes with *nixes, but you can also get it for Windows.ã > e.g.
http://sourceforge.net/project/showfiles.php?group_id=9328, unxutils.ziã > includes a Win32 build of sed.ãããããa while back i mentioned to you that i used ndos for its GLOBAL command, ãwhich preforms a command on all files and files in the sub dirs.ããyou mentioned that you had a similar program that did the same thing?ãdo you recall the name and where one could pick it up?ãã .Ä.Ú Â Â ÂÂ.Ä. ÂÚ¿ã-³ ³Ã¿³ ³³ ³³³ ³³ ³À¿-ã `Ä'ÀÙÁÙÁ`\/'Á`Ä'À-ÙÀÙã+o edge of oblivion bbs þ eob-bbs.comã|04An underground bbs with tons of the best games+filesã|05a zer0net nodeã--- Synchronet 3.14a-Win32 NewsLink 1.85ã * Data Stream - garland texas -
telnet://dsbbs.synchro.netã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Digital Man@VERT to
Jason Hud on Sat Jan 12 10:39:38 2008
Re: utilsã By: Jason Hud to Digital Man on Sat Jan 12 2008 12:24 amãã > To: Digital Manã > > 'sed' traditionally comes with *nixes, but you can also get it for Windã > > e.g.
http://sourceforge.net/project/showfiles.php?group_id=9328, unxutilsã > > includes a Win32 build of sed.ã > ã > ã > ã > ã > a while back i mentioned to you that i used ndos for its GLOBAL command,ã > which preforms a command on all files and files in the sub dirs.ã > ã > you mentioned that you had a similar program that did the same thing?ã > do you recall the name and where one could pick it up?ããI have a 16-bit DOS program called sweep.exe, I think it can from a PCMagãutility set, which will execute a specific command-line in each sub-directoryãof the current directory, recursively. I also have a Win32 program calledã'each', which I wrote and executes a specified command-line for every file inãthe current directory, but it doesn't recurse. So I don't think either of theseãprogram do what GLOBAL does, but perhaps a combination of the 2 would (withã16-bit limitations). Probably not what you're looking for.ãã digital man (xbox-live: digitlman)ããSnapple "Real Fact" #71:ãThere is a town called "Big Ugly" in West Virginia.ãNorco, CA WX: ---.-øF, --% humidity, NaN mph --- wind, --.-- inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Angus McLeod@VERT/ANJO to
Digital Man on Sat Jan 12 15:36:00 2008
Re: utilsã By: Digital Man to Jason Hud on Sat Jan 12 2008 10:39:00ãã > > a while back i mentioned to you that i used ndos for its GLOBAL command,ã > > which preforms a command on all files and files in the sub dirs.ã > >ã > > you mentioned that you had a similar program that did the same thing?ã > > do you recall the name and where one could pick it up?ã > ã > I have a 16-bit DOS program called sweep.exe, I think it can from a PCMagã > utility set, which will execute a specific command-line in each sub-directorã > of the current directory, recursively. I also have a Win32 program calledã > 'each', which I wrote and executes a specified command-line for every file iã > the current directory, but it doesn't recurse.ããã find /base/directory -name "filespec" -exec yourcommand '{}' \;ãã:-)ãã---ãPlaying: "Here" by "VAST" from the "Visual Audio Sensory Theatre" album.ãã---ã þ Synchronet þ Where we BAJA Rob into writing our modules. The ANJO BBSã
-
From
Deuce@VERT/SYNCNIX to
Digital Man on Sat Jan 12 13:41:00 2008
Re: utilsã By: Digital Man to Jason Hud on Sat Jan 12 2008 10:39 amãã > > you mentioned that you had a similar program that did the same thing?ã > > do you recall the name and where one could pick it up?ã >ã > I have a 16-bit DOS program called sweep.exe, I think it can from a PCMagã > utility set, which will execute a specific command-line in eachã > sub-directory of the current directory, recursively. I also have a Win32ã > program called 'each', which I wrote and executes a specified command-lineã > for every file in the current directory, but it doesn't recurse. So I don'tã > think either of these program do what GLOBAL does, but perhaps aã > combination of the 2 would (with 16-bit limitations). Probably not whatã > you're looking for.ããSounds like he's looking for a Windows version of the unix find utility...ãwhich is probably included with that unix utilities bundle on sourceforge.ãã--- ãSynchronet - Jump on the Web 0.2 bandwagon!ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
-
From
MRoblivious1bmf@VERT to
Digital Man on Sun Jan 13 00:12:04 2008
To: Digital Manã.,: This is something about utils,ã Digital Man said it to Jason Hud on Sat Jan 12 2008 04:39 pmã--ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ-ÄÄÄÄ---ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ---ÄÄÄÄÄÄÄÄÄ--ÄÄÄÄÄÄÄÄã > 'each', which I wrote and executes a specified command-line for every file iã > the current directory, but it doesn't recurse. So I don't think either of thã > program do what GLOBAL does, but perhaps a combination of the 2 would (withã > 16-bit limitations). Probably not what you're looking for.ãããah, found sweep.exe and also found a program called global.exe which does the ãsame thing with a few more features.ããhate to give ndos.com the boot, there's a lot of useful things it can do.ããSometimes i forget to do cmd /c for the functions and filenames getãtruncated, though.ããnever liked 4nt.ãã|15 .Ä.Ú Â Â ÂÂ.Ä. ÂÚ¿ã|07-³ ³Ã¿³ ³³ ³³³ ³³ ³À¿-ã|07 `Ä'ÀÙÁÙÁ`\/'Á`Ä'À-ÙÀÙã|08øùú.[|04Edge of oblivion bbs |12eob-bbs.com|08].úùø|15ããã--- Synchronet 3.14a-Win32 NewsLink 1.85ã * eob - Racine, WisconSIN -
telnet://eob-bbs.comã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
MRoblivious1bmf@VERT to
Deuce on Sun Jan 13 00:15:38 2008
To: Deuceã.,: This is something about utils,ã Deuce said it to Digital Man on Sat Jan 12 2008 07:41 pmã--ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ-ÄÄÄÄ---ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ---ÄÄÄÄÄÄÄÄÄ--ÄÄÄÄÄÄÄÄã > Sounds like he's looking for a Windows version of the unix find utility...ã > which is probably included with that unix utilities bundle on sourceforge.ããme?ããdidnt think that version of find was for executing commands on files in ãrecursive dirs\ããi have several copycat unix utils and my copy of find doesnt do that.ãã|15 .Ä.Ú Â Â ÂÂ.Ä. ÂÚ¿ã|07-³ ³Ã¿³ ³³ ³³³ ³³ ³À¿-ã|07 `Ä'ÀÙÁÙÁ`\/'Á`Ä'À-ÙÀÙã|08øùú.[|04Edge of oblivion bbs |12eob-bbs.com|08].úùø|15ããã--- Synchronet 3.14a-Win32 NewsLink 1.85ã * eob - Racine, WisconSIN -
telnet://eob-bbs.comã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã