10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi folks,
In my application there is a job running which create a .dat file along with it zip file also at unix box location /opt/app/cvf/temp1
so in temp1 directory I have one .dat file and its zip file also.
Now since this job runs every day so if a job runs today there will be two files... (5 Replies)
Discussion started by: punpun66
5 Replies
2. Shell Programming and Scripting
Hi,
Anybody help me to write a Shell Script
Get the latest file from the file list based on created and then move to the target directory.
Tried with the following script: got error.
A=$(ls -1dt $(find "cveit/local_ftp/reflash-parts" -type f -daystart -mtime -$dateoffset) | head... (2 Replies)
Discussion started by: saravan_an
2 Replies
3. Solaris
Am new to using Solaris. I wanna know about some of highly re usable and powerful scripts in tcsh. A kind of generic scripts.
can anyone please help me out with any links or functions ??
Thanks in advance (8 Replies)
Discussion started by: Rahul619
8 Replies
4. Shell Programming and Scripting
Hi all,
I am receiving files named like:
ABC_20120730.csv
ABC_20120801.csv
ABC_20120812.csv
They are residing in a folder named Incoming.
I am supposed to write a script that will create a filelist which will contain only the name of the latest file beginning with ABC_, by YYYYMMDD... (3 Replies)
Discussion started by: kedrick
3 Replies
5. UNIX for Advanced & Expert Users
Hai
I wolud like to know how to get the latest files.
ex:
file_ssss_00
file_ssss_01
i need to get file_ssss_01 files only. (in Unix script)
Please give some idea ... (2 Replies)
Discussion started by: raju4u
2 Replies
6. Shell Programming and Scripting
I Need help for one requirement,
I want to move the latest/Older file in the folder to another file. File have the datetimestamp in postfix.
Example:
Source Directory : \a
destination Directory : \a\b
File1 : xy_MMDDYYYYHHMM.txt (xy_032120101456.txt)
File2: xy_MMDDYYYYHHMM.txt... (1 Reply)
Discussion started by: pp_ayyanar
1 Replies
7. Shell Programming and Scripting
Hi Experts Team,
I wish to store the latest file name of partcular pattern in the remote server in a variable.
i tried this
LATEST_FILE=`ssh ${USER_ID}@${REMOTE_HOSTNAME} 'ls -t ${SOURCE_DIRECTORY}/${SOURCE_FILEPATTERN}'`
but its nt working..pls guide me..
Regards,
Kanda (2 Replies)
Discussion started by: spkandy
2 Replies
8. Shell Programming and Scripting
i have the following in my directory x:
3 files with the word "LIST" inside the files
2 files without the word "LIST"
1 folder (sudirectory)
i want to get the filename of the latest file (timestamp) with the word "LIST".
by the way the script and the list of files are in seperate... (4 Replies)
Discussion started by: inquirer
4 Replies
9. Shell Programming and Scripting
1) How do I get the name of latest file in a variable?
2) Is it safe to delete all files from a dir
I am doing
cd $dir_name
if return_code > 0
rm *
fi
what are other alternates to delete all files from a dir in a shell script?
:) (5 Replies)
Discussion started by: Hangman2
5 Replies
10. UNIX for Dummies Questions & Answers
hi all,
someone tell me which is the latest object oriented, easy to use and handle, Unix version/release and from where to get it.
have my thanks in advance if you ll also mention some good books regarding Unix's administration and use for a perfect newbie. (7 Replies)
Discussion started by: irfanets
7 Replies