I have created a price list for a certain product, with the product description, part number and price listed on each line. There is also a column on each line for quantity. I want to take any line where they have entered a quantity, and copy that line to a master "cover page" as a summary of...
Hello,
using csh I need to read in the first 2000 bytes of a file, look for the expression (not including quotes)
"%PDF" and split the file before into one file, and the string plus what follows into a separate file, then replace the first 2000 bytes of the original file with the second file...
I need to determine the byte position of the start point of a string for a csh script. I'm going to use
dd skip=NNN bs=1 if=huge-file of=not-so-huge-file
to take a very large file and skip NNN blocks with a single byte size, so I am just writing out the second half of a very large file.
Any...
I'm trying to use csplit on a 2 MB file. The split occurs correctly, but the second file created only created 650K or so rather than the 2MB or so it should be.
Help!! All I'm trying to do is spli out a certain number of lines at the header of the file, based on the existence of a string...
Using c-shell, I need to do the following:
I have an XML file that has <tag>data</tag><tag2>more data</tag2>
etc..... This is all on one long line, or multiple lines if it goes past 1024 characters or so. I need to work with this file to parse these values, and want to break the file up...
I've writing a script that searches specific lines within a file and outputs them to a variable. Head | Tail combinations and sed -n ?p combinations all seem to be very slow as you get into a large file (25MB or so). Is there some way, maybe with awk or nawk to quickly send a specific line to...
Very frustrating problem. I run a network at home with a linksys wi-fi/4 port router and a DSL connection. I had to take the wireless router out for a few days so I installed Bell South's fastaccess DSL software on one of the systems and plugged it straight into the DSL Modem. THat worked fine...
Hello,
I can't believe I don't remember how to do this, but I need to determine if 2 words exist on any line in a text file, with an unknown number of characters before, between or after the 2 words on the line. Such as
Words to look for are cat and dog
The cat looks at the dog and
Cat is...
Hi Everyone,
I need to replace a string using a wildcard. In other words, a nawk or sed routine to do this:
string to replace "This is a test"
But may occur as "This is not a test"
I want to use something like a wildcard, such as:
"This is * test"
To find and...
Hi Everyone,
I need to replace a string using a wildcard. In other words, a nawk or sed routine to do this:
string to replace "This is a test"
But may occur as "This is not a test"
I want to use something like a wildcard, such as:
"This is * test"
To find and...
Tried using grep -c option to find the number of times a string is found in a text file, but this bypasses multiple occurences of the string on the same line.
Is there a way of capturing total matches of a string in a text file?
Thanks!
Erik
HELP!
I can't figure this out. I just want a total count of a
string in a file. Using the grep -c option just gives me
the line count, but misses is I have multiple matches on a
line.
THANKS!!!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.