Search Results

Search: Posts Made By: SIMMS7400
296
Posted By SIMMS7400
Hi Rudi - That worked great!!! I do have...
Hi Rudi -


That worked great!!! I do have one additional follow up. I also use a trap command to remove the error file and error directory (if empty) at the end as with exec, they need to be...
296
Posted By SIMMS7400
HI RudiC- GNU bash, version...
HI RudiC-


GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
Thanks!
296
Posted By SIMMS7400
Two exec commands in one shell script?
Hi Folks -


Is there a way to add two execs to one script? For instance, I need to redirect the stdout and stderr to two separate directories. I want to do this:
#::-- Direct STDOUT and STDERROR...
192
Posted By SIMMS7400
Why this methodolgy?
Hi Folks -


I have a quick question. A colleaguge has placed this in a shell script:


mv "*.txt" "${_FCST_EXPORT_PATH}/temp/EPBCS_Forecast_${_DATETIMESTAMP}.txt"
mv...
392
Posted By SIMMS7400
This was a huge help! Thank you so much!
This was a huge help! Thank you so much!
392
Posted By SIMMS7400
Thank you very much everyone! This method works...
Thank you very much everyone! This method works great for me!


However, how would I set the results into the variable called _FDMEE_LOG? I can't seem to get it.
392
Posted By SIMMS7400
Sorry, I only gave am example. Here is the full...
Sorry, I only gave am example. Here is the full file I am working with. Getting an error with your suggestion.


It should return "Client_1042.log"


AP_Backup 18-09-12.zip
apr/2018-09-20...
392
Posted By SIMMS7400
Strange sort -r results
Hi Folks -


I have this file that looks like this:

outbox/logs/Client_1042.log
outbox/logs/Client_941.log
outbox/logs/Client_942.log
outbox/logs/Client_943.log
...
153
Posted By SIMMS7400
Simplified Code? Acceptable?
Hi Folks -


I have the following peice of code that I believe is uncecesarily long and I modified it to shorten it up. I was hoping one could comment and confirm my approach was acceptable?

...
312
Posted By SIMMS7400
:-( Thank you.
:-( Thank you.
312
Posted By SIMMS7400
Hi Rudi - It's as follows: ...
Hi Rudi -

It's as follows:



Thanks!

------ Post updated at 11:49 AM ------

Interestingly enough, it works fine on this version of shell:



Any thoughts?
312
Posted By SIMMS7400
Rudi - I'm literally using your code you...
Rudi -

I'm literally using your code you gave me. Version in first post.

Linux Version = Linux 2.6.39-400.128.17.el5uek x86_64

#!/bin/bash

GLP() {
IFS=";" T=($(locale abmon))
...
312
Posted By SIMMS7400
Hi Rudi - Sorry, these are the line.
Hi Rudi -

Sorry, these are the line.
312
Posted By SIMMS7400
Thank you, Rudi!! I'm however getting the...
Thank you, Rudi!!

I'm however getting the following errors:
312
Posted By SIMMS7400
Replace integer string in a variable based on month?
Hi Folks -


Linux Version = Linux 2.6.39-400.128.17.el5uek x86_64

I have a process that determines the start and end load periods for an Oracle data load process.

The variables used are...
283
Posted By SIMMS7400
Thank you for your help! I've updted the code...
Thank you for your help!
I've updted the code per your reccomendations and it's working as expected. The original issues was a pathing error - my fault. But your suggestions were applicable and best...
283
Posted By SIMMS7400
Strange "mv" issue
Hi Folks -


I have this piece of code within a function:


echo --------------------------------------------------------- ...
345
Posted By SIMMS7400
Hi RudiC - Here is what I arrived at with...
Hi RudiC -


Here is what I arrived at with your help of the definitions in your last response.



The reason I"m using a for loop is so I can check what path is being passed in as certain...
345
Posted By SIMMS7400
Thank you, Rudi. Error on my part, the age...
Thank you, Rudi. Error on my part, the age should be "6", not "0".


Here is the log for this portion:



+ Purge...
345
Posted By SIMMS7400
For loop to accept params and delete folder/files
Hi Folks -


I'm trying to build a simple for loop to accept params and then delete the folder & files on the path older than 6 days.


Here is what I have:


Purge () {

for _DIR in...
531
Posted By SIMMS7400
Hi Don - Thank you so much! That worked...
Hi Don -

Thank you so much!

That worked like a charm and it's great to know its adaptable across a few different OS's.

_PBCS_URL=${_PBCS_URL_TST}; STRING=${_PBCS_URL##*-};...
531
Posted By SIMMS7400
Hi Don - BASH. Thanks!
Hi Don -

BASH.

Thanks!
531
Posted By SIMMS7400
Extract string between two special chracters
Hi Folks -

I'm trying to extract the string between two special characters, the "-" and "." symbols.

The string format is as such:
_PBCS_URL_PRD=https://plan-a503777.pbcs.us6.ocloud.com...
470
Posted By SIMMS7400
Hi one last question. Would would be best...
Hi one last question.

Would would be best practice then?

Is pushd/popd method okay or would you recommend another method?

Thank you!
4,761
Posted By SIMMS7400
Wow - I feel silly! I was trying to...
Wow - I feel silly!

I was trying to operate on my phone, but clearly that was a mistake. I've added the closing paren and everything is working as expected.

As always, thank you both!
Showing results 1 to 25 of 176

 

Featured Tech Videos

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