I have a directory e2e_ms_xfer/cent01
this contains the multiple files some of which will be named below with unique date time stamps
e2e_ms_edd_nom_CCYYMMDD_HHMM.csv
What I want to do is in a loop
1) Get the oldest file
2) Rename
3) Move it up one level from e2e_ms_xfer/cent01 to /e2e_ms_xfer
3) Process it
4) Move it down 2 levels to e2e_ms_xfer/cent01/done
4) Exit loop
This is what I have below but it does not do step 2 it says it cannot find files of that name although I have put 5 unique
e2e_ms_edd_nom_CCYYMMDD_HHMM.csv in the directory.
Last edited by Scrutinizer; 09-13-2013 at 07:54 PM..
Reason: code tags
1. If I have a file-yyyymmdd.dat in a directory DATA1, then how do I move this file to directory DATA2 and the file name change to file-yyyymmdd.dat.currenttime
I can manual do this
$mv fileA-yyyymmdd.dat ./DATA2/fileA-yyyymmdd.dat.`date +%Y%m%d%H%M%S`
but how do I move all of the files in... (1 Reply)
Using a bash script, I need to find all files in a folder "except" the newest file. Then I need to insert the contents of one text file into all the files found. This text needs to be placed at the beginning of each file and needs a blank line between it and the current contents of the file. Then I... (5 Replies)
I am connecting to a remote server (Unix) and doing a ftp dowmload of files. The script (VB script) works fine except for not being able to move the downloaded files on the remote server to another folder.
I need to move all files with an .asc extesnion from folder "tovecellio_edi" to folder... (1 Reply)
Hello,
I'm new in the forum and in UNIX scripting, what I need is to write a simple batch script that renames or move the files back & forth from one directory to another, and then schedule the script to run on the server when the scheduled down time is, which is on Thursdays at 8pm and during... (5 Replies)
Hi,
I need to do something easy but I can't seem to figure out how to do this.
Let's say I have 6 files in the directory below:
/ebsbeta_f/flash/EBSUATQB/onlinelog
o1_mf_6_55klt7nr_.log
o1_mf_3_55klskj4_.log
o1_mf_4_55klsrl1_.log
o1_mf_5_55klt09p_.log
o1_mf_2_55klv1ts_.log... (10 Replies)
hi people;
i want to make a file/folder operation as follows.
- i have 41 folders in Windows and each of them have same-named files (~200 files each) inside.
- i want to stack these files together in a folder but Windows is asking to "overwrite" (as usual) since the file names are the same.... (2 Replies)
Hello there! I'm having a lot of trouble writing a script.
The script is supposed to:
1) Find all files with the name "Object.mtl" within each folder in the directory: /Users/username/Desktop/convert/Objects
2) Search and replace the string ".bmp" with ".tif" (without the quotations)
3)... (1 Reply)
I'm using cygwin32 on Windows.
DN is an environment variable pointed at my download directory.
This command works to move the single most recent file in my download directory to my current directory:
mv "`perl -e '$p = $ARGV; opendir $h, $p or die "cannot opendir $p: $!"; @f = sort { -M $a... (2 Replies)
Hey guys,
I have wrote the following script to apply a module named "trinity" on my files. (it takes two input files and spit a trinity.fasta as output)
#!/bin/bash -l
#SBATCH -p node
#SBATCH -A <projectID>
#SBATCH -n 16
#SBATCH -t 7-00:00:00
#SBATCH --mem=128GB
#SBATCH --mail-type=ALL... (1 Reply)
Discussion started by: @man
1 Replies
LEARN ABOUT SUSE
kbookmarkmerger
KBOOKMARKMERGER(1) KDE User's Manual KBOOKMARKMERGER(1)NAME
kbookmarkmerger - A program for merging a given set of bookmarks into the user's list of bookmarks.
SYNOPSIS
kbookmarkmerger [Qt Options...] [KDE Options...] {directory}
DESCRIPTION
kbookmarkmerger is a program for merging a given set of bookmarks into the user's set of bookmarks; if the user doesn't have any bookmarks
created yet, a new bookmark list is created and the given bookmarks are inserted into it. While doing this, kbookmarkmerger keeps track of
which files were merged in a previous run already, so no bookmark will get installed to the user's bookmarks more than once. In case KDE is
running while kbookmarkmerger is executed, the KDE bookmark subsystem will be informed of any changes to the user's bookmarks, so that all
applications accessing that information (i.e. Konqueror) will pick the changes up instantly.
The traditionally used approach to achieve something like this was to use carefully crafted skeleton home directories when creating a new
user account, to provide the user with a standard set of bookmarks. The problem with this approach is that after the user account has been
created, no new bookmarks can be propagated.
This mechanism is useful for system administrators who want to propagate a bookmark pointing to a certain document (for instance, important
notes about the system) to all users. Distributors might find it useful as well, for instance by augmenting the software packages they sup-
ply with bookmark files which kbookmarkmerger merges into the user's bookmark list when the package is installed. That way, documentation
shipped with a software package is easily and visibly accessible right after the package has been installed.
The only parameter required by kbookmarkmerger is the name of a directory which shall be scanned for bookmark files. All files in the given
directory will be considered for being merged into the user's setup. The files in the given directory should be valid XBEL files.
SEE ALSO
Konqueror manual: help:/konqueror/index.html
EXAMPLES
joe@hal9000:~> kbookmarkmerger /usr/local/extra-bookmarks
Merges all bookmark files stored in /usr/local/extra-bookmarks into joe's list of bookmarks.
STANDARDS
XBEL specification: http://pyxml.sourceforge.net/topics/xbel/
RESTRICTIONS
When determining whether a given bookmark file has been merged into the user's bookmarks already or not, kbookmarkmerger merely looks at
the filename of the bookmark file - the contents are not checked at all. This means that changing a bookmark file which was already merged
into a user's bookmarks will not trigger merging it once again.
Also note that in case a user modifies a bookmark which was merged into his setup, the original bookmark file will be left unmodified.
AUTHOR
Frerich Raabe <raabe@kde.org>
AUTHOR
Frerich Raabe.
K Desktop Environment February 1st, 2005 KBOOKMARKMERGER(1)