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 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 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 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
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?
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?
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?
I will have to put up with that annoying "SmegZOT v1.00 aRf" and
"SmegWARE [Registered] in my logon.asc.
lines of an ANSI file. Does anyone have any ideas?
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
:-)
e.g. http://sourceforge.net/project/showfiles.php?group_id=9328, unxutils.zi includes a Win32 build of sed.
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?
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.
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.
'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.
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.
Sysop: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 578 |
Nodes: | 8 (0 / 8) |
Uptime: | 30:44:35 |
Calls: | 10,736 |
Calls today: | 1 |
Files: | 5 |
Messages: | 443,217 |
Posted today: | 1 |