Computing.Net > Forums > Disk Operating System > DOS/ UNIX command help needed

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

DOS/ UNIX command help needed

Reply to Message Icon

Name: Steve
Date: June 17, 2002 at 09:04:21 Pacific
Comment:

Hi guys

I have 120+ price/ holdings files, which have been unloaded from my in house software product. I
now need to strip out the top 12 lines from each file (the price section
only), and copy these chunks of text into one big file. Copy & pasting in a
text editor would do it, but it'll take all afternoon.

Does anyone know of a quicker way of doing this (with a DOS command within a
batch file maybe)?

Thanks in advance
Steve



Sponsored Link
Ads by Google

Response Number 1
Name: JackG
Date: June 17, 2002 at 17:10:04 Pacific
Reply:

What you want is at Secret_Doom #19 (he is normally around). It can be used to extract any number of lines from line x to line y from a text file. It is a script to generate the required program. This could be combined with a FOR statement and the outputs combined into the output file. If you can't write the rest of the batch file to get your 12 top lines with this and combine all files, then contact Secret_Doom and he will do it for you.


0

Response Number 2
Name: T.rajah ramesh kumar
Date: June 28, 2002 at 03:55:34 Pacific
Reply:

i another need for Microsoft technical refference manual
please help me
by
T.rajah ramesh kuamr
2563,kaveri akka lane
r.g.koil st,
Thanjavur


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


create an extended partit... USB PenDrive Boot?



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: DOS/ UNIX command help needed

NT DOS external Command Problem Need mor www.computing.net/answers/dos/nt-dos-external-command-problem-need-mor/8371.html

DOS command line help needed www.computing.net/answers/dos/dos-command-line-help-needed/14756.html

I need to reformat my computer+install all new dos and windows. HELP!! www.computing.net/answers/dos/i-need-to-reformat-my-computerinstall-all-new-dos-and-windows-help/2053.html