Search Results

Search: Posts Made By: SIMMS7400
1,926
Posted By SIMMS7400
How to extract the path BELOW a certain folder?
Hi Folks -


I have a path such as the following:



I have other paths such as:



Is there a way to extract the sub directories of "/Files"?



THanks!
2,667
Posted By SIMMS7400
They all worked flawlessly!!! Thank you so much!
They all worked flawlessly!!! Thank you so much!
2,667
Posted By SIMMS7400
Help needed to modify search functionality
Hi Folks -


I have the following file:

This file is exported after various steps of my data integration routine. I need to be able to dynamically download the latest logfile from this list...
3,056
Posted By SIMMS7400
HI Rudi - That doesn't work, unfortunately. I'll...
HI Rudi - That doesn't work, unfortunately. I'll keep playing around with it
3,056
Posted By SIMMS7400
Trouble calling sqlplus within script
Hi Folks -


I'm trying to create a simple script I can run for a migration effort I will be doing.



The issue I am having trouble with is calling sqlplus within my script. Here is my...
1,530
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...
1,530
Posted By SIMMS7400
HI RudiC- GNU bash, version...
HI RudiC-


GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
Thanks!
1,530
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...
367
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...
2,133
Posted By SIMMS7400
This was a huge help! Thank you so much!
This was a huge help! Thank you so much!
2,133
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.
2,133
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...
2,133
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
...
879
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?

...
1,488
Posted By SIMMS7400
:-( Thank you.
:-( Thank you.
1,488
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?
1,488
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))
...
1,488
Posted By SIMMS7400
Hi Rudi - Sorry, these are the line.
Hi Rudi -

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

I'm however getting the following errors:
1,488
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...
946
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...
946
Posted By SIMMS7400
Strange "mv" issue
Hi Folks -


I have this piece of code within a function:


echo --------------------------------------------------------- ...
1,012
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...
1,012
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...
1,012
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...
Showing results 1 to 25 of 181

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