Search Results

Search: Posts Made By: doza22
2,171
Posted By doza22
Agama, your solution worked, thanks! ...
Agama, your solution worked, thanks!

tarun_agrawal, I did not have a chance to try your solution, but it looks similar to the one I tried. Thanks for your input as well!

Thanks again...
2,171
Posted By doza22
Unfortunately the file is quite lengthy. I tried...
Unfortunately the file is quite lengthy. I tried to use perl, but it did not perform the match correctly:

perl -pi -e 's/^CONTAINER EGLV${line}/^CONTAINER CHNJ${line}/g' $1

This simply changed...
2,171
Posted By doza22
SED/AWK maybe PERL in a WHILE loop
Hi,

I have a file containing numerous string values, for example:

AMFU8849636
CCLU7120334
GESU5784065
TEMU3070096I have a second file with multiple records, such as the one below that I...
1,599
Posted By doza22
Thank you guys for your fast reply! Just what I...
Thank you guys for your fast reply! Just what I needed!
1,599
Posted By doza22
Storing a field within a variable
Hi,

I need to figure out a way to to capture the contents of a field that is separated by a pipe sign.

Example Data:

-100F| some other description
-10C| some description
| some...
3,098
Posted By doza22
So to bring everything back to the beginning,...
So to bring everything back to the beginning, this is what I am requesting in basic form:

Input file:

"YCEU3600913","29P0","CT",20,"FB","Platform",2700,28000,"O",...
3,098
Posted By doza22
Here is an example input file (fixed length): ...
Here is an example input file (fixed length):


CMAYCEU3596080 2700 28000 29P0
CMAYCEU3600425 2700 28000 29P0


Here is my code that I normally use to receive input from a fixed length...
3,098
Posted By doza22
Sorry for being so vague, but I thought I would...
Sorry for being so vague, but I thought I would be able to take the code and output the information in a specific format, but I wasn't able too.

Here are the field lengths indicated by the start...
3,098
Posted By doza22
Thanks for all the replies. For the first two...
Thanks for all the replies. For the first two replies (PERL and AWK solutions), I am having the toughest time trying to output each line.

I have a multi-line file and I would like the output to...
3,098
Posted By doza22
Delimited file problems
I am trying to store each value in this delimited file:

"YCEU3600913","29P0","CT",20,"FB","Platform",2700,28000,"O",
"YMLU4366413","42G1","CT",40,"ST","40x8 6,Passive vents at...
1,515
Posted By doza22
Thanks for the advice. Is there a way to just...
Thanks for the advice. Is there a way to just delete this post?
1,515
Posted By doza22
Complex search and output
Hi,

I have somewhat of a complex task at hand. I am on a HP-UX box and I need to search for information embedded in files, further embedded into a file/folder structure.

I compiled a list of...
5,285
Posted By doza22
Once again, it worked perfectly! Thanks...
Once again, it worked perfectly!

Thanks again!

Chris
5,285
Posted By doza22
Sorry to bother again, but is there a way to pass...
Sorry to bother again, but is there a way to pass the awk script the search string?

Instead of '789', can I pass, '456' or another value to the script?
5,285
Posted By doza22
The 'awk' command worked and returned the...
The 'awk' command worked and returned the intended results!

Thanks again for the fast response!

Chris
5,285
Posted By doza22
Thank you for the fast response. However 'nawk'...
Thank you for the fast response. However 'nawk' is not available on my UNIX system. (HP-UX)

Can I use a different command?
5,285
Posted By doza22
Search for string and return lines above and below
Hi,

I have a file with the following contents:

COMPANY ABCD
TRUCKER JOE SMITH
TRUCK 456
PLATE A12345678
TRUCKER BILL JONES
TRUCK 789
PLATE B7894561

I need to create a script or...
7,221
Posted By doza22
Yes, I tried with the variables, but no luck. I...
Yes, I tried with the variables, but no luck. I did not use the variable names that I put in the example, I just used that naming convention for description.
7,221
Posted By doza22
One more question in response to the 'sed'...
One more question in response to the 'sed' command, is there any way to reference a variable name as the search string and as the file name?

Example:

STRING=bbbbbb
FILE=file165

sed...
7,221
Posted By doza22
Thanks for the quick response! The 'sed' command...
Thanks for the quick response! The 'sed' command worked perfectly.
7,221
Posted By doza22
grep string and then find another string
I have a file that looks like this:

Name=TOM
abcded
asdfas
fkoiaerj
inadhah
Name=Chris
23nafds
vasdkfna
afadns
afdadsfa
aaaaaa
bbbbbb
cccccc

I would to search for the string...
17,680
Posted By doza22
Thanks! That worked great!
Thanks! That worked great!
17,680
Posted By doza22
How to grep for two or more words in a line at the same time ...
I have a file that has multiple lines separated by an asterisk as a delimiter:

FILE.txt

A*123*BCD*456*TOM
A*789*EFG*947*CHRIS
A*840*BCD*456*TOM

I would like to search multiple files for...
3,016
Posted By doza22
Thank you very much! It works perfectly!
Thank you very much! It works perfectly!
3,016
Posted By doza22
Thanks for the reply. Sorry, I just copy and...
Thanks for the reply. Sorry, I just copy and pasted just as I pulled it off another site.

Your recommendation returned:

123456
ghijkl

Is there any way to get rid of the 'ghijkl' line?
...
Showing results 1 to 25 of 26

 
All times are GMT -4. The time now is 05:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy