10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
All,
I am trying to create a report on the duration of an ETL load from the file arrival to the final dump in to a database for SLA's.
Does anyone have any guidance or ideas on how metadata can be extracted; information of a file: like file name, created timestamp, count of records and load... (1 Reply)
Discussion started by: pradeepp
1 Replies
2. Shell Programming and Scripting
if test -n "$(find/data/path/ 'filename.txst' -print-quit)
then
echo "file found"
exit 0
else
echo "file not found"
exit 46
fi
So I basically looking to understand the
if test -n "$(find/data/path/ 'filename.txst' -print-quit)
line.
Pls help to elaborate what this command... (6 Replies)
Discussion started by: Nsharma3006
6 Replies
3. UNIX for Dummies Questions & Answers
Hi Guys,
I hope anyone can help me on how to create a watcher-script. The script will act as watcher wherein whenever it will find an error (say the word Error) in a file, it will prompt the user.
Please help!
br,
rymnd_12345 (3 Replies)
Discussion started by: rymnd_12345
3 Replies
4. Shell Programming and Scripting
Hi all,
I am writing a script to do the following:
1) Check if there are any new <csv> files (in abc directory) to process
2) If there is new file, then perform some operation on that file.
3) Move it to a different location(after step2 is successful)
4) Do further processing on the file
... (2 Replies)
Discussion started by: stunnerz_84
2 Replies
5. Shell Programming and Scripting
Hi Experts
I will have be having 3 types of files in directory
file1_p0_date
file1_p1_date
file1_p2_date
As soon as it sees any of the files it needs to kick off another process and also would need the file name
For this I am creating a file watcher script which will look for file1* My... (2 Replies)
Discussion started by: westernmichnov
2 Replies
6. UNIX for Advanced & Expert Users
Hi,
I need a script for "FILE WATCHER"
I have in a remote FTP location server named MAIN _104
EveryDay mrng 8 i hav to search couple of folders(COL, ATT, TRA) in that FTP server (MAIN_104), and if any files are present in that folders i hav to bring back to my computer and store it anywhere... (4 Replies)
Discussion started by: nani1984
4 Replies
7. Shell Programming and Scripting
Hi all,
I have a requirement to create a "superset" file out of a number of different sources with some different and some same columns.
We intend to have a manually updateable SuperSetCols.csv which would look like
"ColA","ColB","ColC","ColD","ColE","ColF","ColG"
so someday we may add... (3 Replies)
Discussion started by: Leedor
3 Replies
8. Shell Programming and Scripting
Hi
Please help me in this
I want to execute a shell script abc.ksh.
But I only want it to execute if file XYZ is not present.
If file XYZ is present than I want to unix to sleep for 5 Sec and than agaian check for XYX existence.
if it sleeps for more than 30 seconds ( 6 time )I want it to... (3 Replies)
Discussion started by: er_zeeshan05
3 Replies
9. Shell Programming and Scripting
All,
This is what I did:
Suppose:
$ line="23|12|21"
$ eval $(echo "$line" | awk -F'|' '{print "V1="$1";V2="$2";V3="$3}')
$ echo $V1
23
$ echo $V2
12
$ echo $V3
21 (3 Replies)
Discussion started by: uwork72
3 Replies
10. Shell Programming and Scripting
Would appreciate if any one can paste a generic schell script to archive a file with date stamp by passing the file with fullpath as parameter
For Eg. /apps/scripts/Archive_File.sh /data_home/project_home/file.txt
this should place the file in the following directory
... (8 Replies)
Discussion started by: mak1600
8 Replies