Search Results

Search: Posts Made By: eja
3,849
Posted By eja
Thank you.
Thank you.
3,849
Posted By eja
Thank you very much this works just fine.
Thank you very much this works just fine.
3,849
Posted By eja
echo is too slow. HELP with Awk
Hello All,

Below is a simple script i worte to find the 208th char in a file. If the char = "C" then I re-direct the line to a file called change.txt. If it is not "C" then I re-direct it to a...
7,590
Posted By eja
Dear vgersh99, One more followup question if...
Dear vgersh99,

One more followup question if you do not mind? I may need to compare other files where the static data is not just in the first field arr[$1].

It could be the 1st and 3rd ...
7,590
Posted By eja
COuld be the version of awk. More likely me and...
COuld be the version of awk. More likely me and something I am doing. But it does what i need for now. And it is all thanks to your help.

Again, thank you for taking the time to help.
7,590
Posted By eja
I did try it w/o =1 or !=1. When I did I got no...
I did try it w/o =1 or !=1. When I did I got no results. As soon as I put the =1 and !=1. It displayed results.
7,590
Posted By eja
Yes that would help. you can tell I am a newbie. ...
Yes that would help. you can tell I am a newbie. Works great. I changed it slightly but it works.

awk -F'|' '
NR==FNR { arr[$1]=1; next }
arr[$1] !=1' $HOME/$WORK/$NewFile...
7,590
Posted By eja
I did after I sent the reply. Sorry should have...
I did after I sent the reply. Sorry should have thought before I typed.
7,590
Posted By eja
THank you for the reply. Unfortunately I am...
THank you for the reply.

Unfortunately I am running ina UNIX emulator WIndows Services for Unix. It does not ahve nawk. can this be done in awk?
7,590
Posted By eja
How do I pass a variable to awk?
I have an awk statement where I Need to pass an environment variable but I cannot get it to work:

My evironment varible examples below:
$FILE1=/dev/fs/file.new
$FILE2=/dev/fs/file.old

Code...
3,283
Posted By eja
anbu23, Thank you very much. this works...
anbu23,

Thank you very much. this works great. I assume with a fixed length file I could use awk's substr command?

I also have two files that are fixed length where the first 20 characters is...
3,283
Posted By eja
Help comparing 2 files to find deleted records
Hi,

I need to compare todays file to yesterdays file to find deletes.
I cannot use comm -23 file.old file.new.

Because each record may have a small change in it but is not really a delete....
5,309
Posted By eja
works great. thanks. I tried everthing bu. feel...
works great. thanks. I tried everthing bu. feel dumb now. I tried "" and `` did not think of single qoutes
5,309
Posted By eja
How do I pass a wild card as a variable
Hi,

I would like to pass a wild card as part of an argument. But when I do it the script views the wild card as text.
Example:
sFile=MG1A*
sort $sFile > $sFile.sorted

What I get is...
2,940
Posted By eja
Can you limit the compare on "comm" command- ANSWER FOUND PLEASE IGNORE.
I need to find deleted records from a file. I compare yesterdays file.old to todays file.new. I need to find the records that were in yesterdays file that are not in todays. My file is fixed field....
83,619
Posted By eja
Wow, Thank you for such a quick response. I...
Wow,

Thank you for such a quick response. I tried these and the 3rd suggested post works best for what I need.

Thank you again.
83,619
Posted By eja
Delete Multiple White Spaces
Hi,

I have a file that has multiple spaces between characters. I want to delete or convert the multiple spaces into a single space. I think this can be done in "sed" but I only know the syntax to...
Showing results 1 to 17 of 17

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