Search Results

Search: Posts Made By: jeffs42885
17,264
Posted By jeffs42885
Cut between two delimiters, / and .
BASH : I have a very long list I am parsing through:



10/10/19...
6,460
Posted By jeffs42885
I will try both of these. I think that both of...
I will try both of these. I think that both of these solutions are great, and my biggest issue right now is that I am overthinking. I appreciate the feedback
6,460
Posted By jeffs42885
ksh / AIX - Differences between lists to a text file
This seems pretty simple, but I cant figure it out. I get stumped on the simple things.




I am running two commands


1) take a listing a directory of files, and filter out the doc_name...
4,468
Posted By jeffs42885
Sed/awk to tell differences between two lists
Greetings all, I have two output lists from a log that I am working with. Below are the examples. except, the lists are in the thousands.

list1.out


FEA1234
FEA4343
FEA3453
FEA3413
FEA34A3...
1,544
Posted By jeffs42885
Apologies. Alot of this is custom in house stuff...
Apologies. Alot of this is custom in house stuff and I am just trying to mask certain things. I am also trying to provide my approach in a scripting sense with examples, as to not just "ASK FOR THE...
1,544
Posted By jeffs42885
I am using bash shell. Here's a high level...
I am using bash shell.

Here's a high level summary of what I have if it will help out better explain what I am trying to do.

I need to run a utility against a series of files, it needs to hit...
1,544
Posted By jeffs42885
Parse file name, add to loop?
I have a list of files that I need to loop through, parse, and run a command against. Here's my selected approach.

for i in FIELD1.FIELD2.FIELD3.FIELD4.index
do
j=${i%.index}
loadutility...
3,067
Posted By jeffs42885
Your first approximation worked! Thank you!
Your first approximation worked!

Thank you!
3,067
Posted By jeffs42885
Nope. Here's what I am running- while...
Nope.

Here's what I am running-

while IFS=, read agname tablename
do
echo "while read IFS=, read docname agname" >> $BASEDIR/scripts/${agname}_retrieval.ksh
echo "do" >>...
3,067
Posted By jeffs42885
This worked great. One concern. I am trying...
This worked great. One concern.

I am trying to echo a query that gets passed to my command:

Heres what I am getting

-i "where doc_name like \'%\'Heres what I need

-i "where doc_name like...
3,067
Posted By jeffs42885
Escaping a variable in ksh
I am trying to echo a variable exactly to a script-

echo "${var1} ${var2} >> output.output

Gives me a blank file.

I would like output.output to basically say:

${var1} ${var2}

I think I...
1,107
Posted By jeffs42885
sorry about that. This is AIX/DB2 using KSH. ...
sorry about that. This is AIX/DB2 using KSH.

I have tried various joins on fields that I thought were similar..and other queries.

I did this to get a listing of the application ID's based on...
1,107
Posted By jeffs42885
Modifying/combining two text outputs
greetings,

I have what seems to be a fairly complex task at hand. I am dealing with 3 outputs from a database.

a) Listing of tables. The first 3 characters are always an identifier of an...
2,369
Posted By jeffs42885
they are - data or International Language text
they are - data or International Language text
2,369
Posted By jeffs42885
I was thinking of doing that too, by far the...
I was thinking of doing that too, by far the easiest way.

i have some concerns about doing this in a production system though..But the differences in the files will still be in the thousands, so a...
2,369
Posted By jeffs42885
Comparing two directories with diff
Hi all,

I have 2 directories on two different servers. I am trying to find out what is missing from directory X and what is missing from directory Y. they should both have the same exact files in...
Forum: Programming 07-15-2018
3
1,278
Posted By jeffs42885
Regex
I dabbled with regex a few years back and failed miserably.



I am trying to do two things, and dont know where to start. Heres my examples


1) Code Code CODERS


should be


Code...
Forum: AIX 07-13-2018
2,753
Posted By jeffs42885
This worked. I need to now understand why.
This worked. I need to now understand why.
Forum: AIX 07-13-2018
2,753
Posted By jeffs42885
jeff@server:/home1/jeff> echo $PATH...
jeff@server:/home1/jeff> echo $PATH...
Forum: AIX 07-12-2018
2,753
Posted By jeffs42885
Same as whence Sorry. I don't think I can do...
Same as whence

Sorry. I don't think I can do tags on mobile
Forum: AIX 07-12-2018
2,753
Posted By jeffs42885
Strange issue installing Java 8
I just intalled java8_64.jre and .sdk respectively

installp -agXYd . Java8_64.jre Java8_64.sdk 2>&1 | tee installp.log

Worked like a champ. Now I see this--

jeff@server:/usr> ls -l | grep...
1,102
Posted By jeffs42885
Within /etc/pam.d/su- auth ...
Within /etc/pam.d/su-

auth [success=ignore default=1] pam_succeed_if.so user = archive
auth sufficient pam_succeed_if.so use_uid user = archive


I am still prompted...
1,102
Posted By jeffs42885
Switching to user to stop db
Hi all, I have a script that I will need to run occasionally to stop my db2 instance-

stopDB2.sh

su -l -c "db2 force application all"
su -l -c "db2 terminate"
su -l -c "db2 stop"
su -l -c...
1,427
Posted By jeffs42885
bash - Validating return code 0
Hi All, I am trying a script out that will startup on one of my servers. i wanted to check for RC 0 and if it didnt check out, exit.

Typo- This is BASH (Redhat)

This isnt working, and this is...
Forum: AIX 10-20-2017
2,312
Posted By jeffs42885
Client as in my company. Who is running the...
Client as in my company. Who is running the daemon as non root when its not really needed. I've seen several implementations of this product but never seen the daemon running as root.

Heres my...
Showing results 1 to 25 of 126

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