Search Results

Search: Posts Made By: DerangedNick
Forum: AIX 02-25-2015
6,312
Posted By DerangedNick
Print to Windows PDF printer from AIX
Hopefully this is the correct place to post this, if not please let me know.

I am trying to find a way to print from AIX directly to a windows PDF printer. I don't really care if it is paid or...
820
Posted By DerangedNick
All columns are the same width, it is just...
All columns are the same width, it is just getting messed up in the code. So each of them are Field 1 | Field 2 | Field 3 | Field 4 even if they are blank the pipes get put in and they will always...
820
Posted By DerangedNick
Repeating Multiple Fields
I am trying to find a way to repeat fields. I am not really sure how to explain it so let me just post a sample and what I want it to look like.


888123 66232 18 1
19
...
6,758
Posted By DerangedNick
well I am not really sure why the other command...
well I am not really sure why the other command didn't work and I figured you were pulling character positions with the 0 and 9.. but sed seems to work.

I was reading online about ksh versions...
6,758
Posted By DerangedNick
root@testbox:/testscript # ./testscript ...
root@testbox:/testscript # ./testscript
F='99_REPORT_2222' - N='CARSBLU'
./testscript[8]: NEW="${F:0:9}.${N}${F:9}": bad substitution

I put it on quotes and received that, however if anyone does...
6,758
Posted By DerangedNick
I am using ksh according to the command ps -p $$....
I am using ksh according to the command ps -p $$. This is an AIX 5.3 TL 11 box not sure if that helps with anything
6,758
Posted By DerangedNick
F='99_REPORT_2222' - N='CARSBLU' ...
F='99_REPORT_2222' - N='CARSBLU'
./testscript[8]: NEW=${F:0:9}.${N}${F:9}: bad substitution
6,758
Posted By DerangedNick
I made the modifications that you mentioned but I...
I made the modifications that you mentioned but I am still stuck on this error.

./testscript[7]: NEW=${F:0:9}.${N}${F:9}: bad substitution


Any ideas where this one might be coming from?
6,758
Posted By DerangedNick
Ok so to test this, to make sure I am doing this...
Ok so to test this, to make sure I am doing this right... I created the file "names" and i placed
"CARS WITH RED PAINT" CARSRED
"CARS WITH BLUE PAINT" CARSBLU
in the file.

I then...
6,758
Posted By DerangedNick
I understand the idea... I think. You are...
I understand the idea... I think.

You are making the value of F the file name by listing any file in the directory with *REPORT_*

For W in you are saying have a seperate file with all of the...
6,758
Posted By DerangedNick
Renaming Files Based on Contents
Hello everyone,

I currently have a situation which is causing me some issues for keeping up with certain files. I will explain this to the best of my abilities.

I have a list of files as...
1,887
Posted By DerangedNick
I am running it on a text input prior to trying...
I am running it on a text input prior to trying to load it to a database. Just tried it again and i am checking the output now, so I am not sure if it worked yet.
1,887
Posted By DerangedNick
I am running on AIX 5.3, I am not sure if that...
I am running on AIX 5.3, I am not sure if that may be the difference. I am running it over a fairly large file but let me try your example...

I tried your example and it worked fine, let me try...
1,887
Posted By DerangedNick
Using SED to Replace \|
I have been trying for a couple of hours now to use sed to replace a string in a file. The file is delimited by pipes (|) and I have tried writting the script several different ways.
The problem is...
13,012
Posted By DerangedNick
That put >>> next to each line where column 4 is...
That put >>> next to each line where column 4 is the only thing, however it still left the text there. Other than that it is working fine. It is marking >>> on completely blank lines as well...
13,012
Posted By DerangedNick
Adding the + just cuts off pieces of the header,...
Adding the + just cuts off pieces of the header, while before the header was still in tact. It does not resolve the other problem with leaving column 4 around though.

Thanks again for all the...
13,012
Posted By DerangedNick
That script works for the most part, however the...
That script works for the most part, however the same problem happens as before. It is leaving column 4 in tact if it is the only thing on the line.

Not really to sure what else to say to give...
13,012
Posted By DerangedNick
No that didn't work. I am not really sure what...
No that didn't work. I am not really sure what is causing it to cut off that 4th line on column 5. Very strange.
13,012
Posted By DerangedNick
The width of the columns do appear to be fixed. ...
The width of the columns do appear to be fixed. It is just on a line that has no data but column 4 it seems to be removing the data in column 5 on the bottom.

Example:

Address is 4 lines long...
13,012
Posted By DerangedNick
The script you provided seems to have done the...
The script you provided seems to have done the trick for the most part. It does cut into the header (there is a header at the top of each page) but I am fine with that. I replaced all of the text...
13,012
Posted By DerangedNick
Sample
Due to the nature of the data I can't provide an actual example. However I have attached a file that I placed a T where the text is, a N where numbers are and a b for the data I do not want.

I...
13,012
Posted By DerangedNick
I changed the Header Size to 0 - however it still...
I changed the Header Size to 0 - however it still removes Column 4, but I did find a work around using the sed command to fix it. (may not be the easiest but it works).

On line 8 i used...
13,012
Posted By DerangedNick
Search pattern not terminated at ./testscript...
Search pattern not terminated at ./testscript line 16.

I will try to find it.


I have tried to find it but i am still not able to find it. I will keep looking for the time being but any help...
13,012
Posted By DerangedNick
It seems like it is removing 6 lines from the...
It seems like it is removing 6 lines from the top, then counting down 51 lines and removing 6, but as if it shifted the lines up first. I can't really tell but as it goes down the report it is...
13,012
Posted By DerangedNick
Ok this one looks alot better. Totals are in...
Ok this one looks alot better. Totals are in tact however it needs to start cutting off 1 character earlier (which I think I may be able to change).

The problem however now is that some lines do...
Showing results 1 to 25 of 28

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