Search Results

Search: Posts Made By: mavsman
15,344
Posted By mavsman
thanks for the posts :)
thanks for the posts :)
15,344
Posted By mavsman
find command in while loop - how to get control when no files found?
I have the following statement in script:

find ${LANDING_FILE_DIR}${BTIME_FILENAME_PATTERN2} -print | while read file; do
...
done

When there are no files located by the find comand it...
20,197
Posted By mavsman
One more thing.. is there a way to sort the by...
One more thing.. is there a way to sort the by modify date with this command?
tia
20,197
Posted By mavsman
Thanks a lot. :) :)
Thanks a lot.
:) :)
20,197
Posted By mavsman
Thanks a bunch.. ANy way to get read of the ./...
Thanks a bunch.. ANy way to get read of the ./ in the list when using the find command?

./BTIME_ACTUAL_WORK_HRS_wk_45_to_46.csv
./BTIME_SCHEDULED_WORK_HRS_weeks_45_46.csv


tia
13,267
Posted By mavsman
The files land in a specified directory at...
The files land in a specified directory at varying times of a day. Each file will be uniquely named but follow a pattern.
20,197
Posted By mavsman
Multiple conditions in find or ls stmts
I'm looking for syntax to include two search patterns in a find or ls command. e.g.

find BTIME_ACTUAL_HRS* OR BTIME_SCHEDULED_HRS*


tia
3,748
Posted By mavsman
yes I think so. ... for file in `find...
yes I think so.


...
for file in `find ${LANDING_FILE_DIR}${bTIME_FILENAME_PATTERN1}`

do
....

running the script I get the following find error:

find: bad status--...
3,748
Posted By mavsman
I do the following a check for -s and -r. The...
I do the following a check for -s and -r. The find statment in the for loop issues a bad status:

find: bad status-- /home/rnitcher/test/BTIME_ACTUAL_WORK_HRS_wk_[0-9][0-9]_to_[0-9][0-9].csv

I...
3,748
Posted By mavsman
Testing For Loop condition
How do I test the return condition in the script if no files are found:

for file in `Find ${LANDING_FILE_DIR}${BTIME_FILENAME_PATTERN}`

do
...
..
done

I want to capture the return code so...
13,267
Posted By mavsman
export LANDING_FILE_DIR="/xfer/appl/btime/" ...
export LANDING_FILE_DIR="/xfer/appl/btime/"
export JTIME_FILENAME_PATTERN1="BTIME_ACTUAL_WORK_HRS_wk_[0-9][0-9]_to_[0-9][0-9].csv"


for file in $(ls -1tr...
13,267
Posted By mavsman
The ls may be better then using find since I'm...
The ls may be better then using find since I'm expecting the files to be in the same directory each time....Thanks..:)
13,267
Posted By mavsman
find command sort options?
Hi - are there sort options with the find command? I don't see any in man. I have a script that is looping through a set a files to be processed and I need to process them in date timestamp order. ...
3,589
Posted By mavsman
I agree but the existing .ksh calls an...
I agree but the existing .ksh calls an Informatica process that references a specific flat file for a source. It doesn't allow a dynamic flat file source name so I have to replace the existing one...
3,589
Posted By mavsman
file names: ...
file names:

BTIME_ACTUAL_WORK_HRS_wk_45_to_46.csv
BTIME_ACTUAL_WORK_HRS_wk_46_to_47.csv
...
sample processing:

1) strip off/rename each data file
e.g....
3,589
Posted By mavsman
test message
test message
3,589
Posted By mavsman
Data File Processing Help
I need to read contents of directory and create a list of data files that match a certain pattern and process by renaming it and calling a existing .ksh script then archiving off to file another...
Showing results 1 to 17 of 17

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