10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
I did the initial search but could not find what I was expecting for.
15606Always_9999999997_20160418.xml
15606Always_9999999998_20160418.xml
15606Always_9999999999_20160418.xml
9819Always_99999999900_20160418.xml
9819Always_99999999911_20160418.xmlAbove is the list of files I... (4 Replies)
Discussion started by: chillblue
4 Replies
2. Shell Programming and Scripting
Hi All
I am trying to run sed command to remove first 2 charcaters from a file on Multiple Files in my directory and what to retain the same file name .
I want to know how to retain the same file name but with changes .
Can some one please let me know how to proceed with this .
... (7 Replies)
Discussion started by: honey26
7 Replies
3. Shell Programming and Scripting
Hello Forum.
I have the following files in one directory:
abc_july01_2013.txt
abc_july02_2013.txt
abc_july03_2013.txt
abc_july04_2013.txt
abc_july05_2013.txt
abc_july06_2013.txt
abc_july07_2013.txt
abc_july08_2013.txt
If I want to be able to keep the last 5 versions of the file and... (4 Replies)
Discussion started by: pchang
4 Replies
4. 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
5. 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
6. 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
7. Shell Programming and Scripting
I am trying to scp the latest file which ends with "_abc.log". Can some help me figure out how can do that? (3 Replies)
Discussion started by: shehzad_m
3 Replies
8. 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
9. Shell Programming and Scripting
hi all,
Is there any way to retain file path?
echo "Please enter your old filename"
read a
#user input : /blah/blah1
echo "please enter the new filename"
read b
#user input : dumb
mv $a $b
What i would like to do is for the user to enter just the "filename" for the new filename... (2 Replies)
Discussion started by: c00kie88
2 Replies
10. UNIX for Advanced & Expert Users
While copying, how we can retain the same date for new file as it was on the old file. (1 Reply)
Discussion started by: param_it
1 Replies