09-17-2012
[SOLVED] moving multiple files? mv
HI I have a list of files that are incorrectely names and I need to move them to new name .. I tried few things that has not worked so far can you help ?
I need to rename all thes eifle ( tere are over 100 )
xldn0357bap.orig.new
xldn0389bap.orig.new
xldn0439bap.orig.new
xldn0475bap.orig.new
to
xldn0357bap.orig
xldn0389bap.orig
xldn0439bap.orig
xldn0475bap.orig
How can I use a move command to do this?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
i am using a FreeBSD remote account and I have directory that holds a number of
other directories most of which posses *.tgz *.tar.bz2 *.gz files... on a linux system
i would use a find format such as this to locate and mv *.tgz and *.tar.bz2 files
find ./dir -type f -iname "*.t*" -print |... (3 Replies)
Discussion started by: moxxx68
3 Replies
2. Shell Programming and Scripting
Greetings,
I know i can use the mv command to move and rename one file. How can I do this with multiple files?
example
pic01.bmp to pic0001.bmp
how can i perform this function on an entire directory of sequential files and keep them in sequence?
Hints, suggestions are most welcome:)
... (1 Reply)
Discussion started by: rocinante
1 Replies
3. Shell Programming and Scripting
Hi All,
Being new to scripting I am facing a new situation. We have an application that generates a file lets say dumpfile for each user under the users home directory when they execute the application. This is quite a huge file and imagine having that for over 40 users on a daily basis. The... (1 Reply)
Discussion started by: daemongk
1 Replies
4. Shell Programming and Scripting
Hi, I'm new here an dlearning a lot from this forum. i didnt find any solution for this in the forum.
I have already checked in folders in subversion named
HTT01,... HTT21.. and have files in each folder like below:
HTT01/HTT01_00000.hex
HTT01/HTT01_00000_fb_result.hex... (2 Replies)
Discussion started by: ravishan21
2 Replies
5. Shell Programming and Scripting
Hi,
I have a requirement where
I need to move Bunch of folders containing multiple files to another archive location.
i want to use mv command .I am thinking when we use mv command to move directory does it create directory 1st and then move all the files ?
e.g
source... (4 Replies)
Discussion started by: rkmbcbs
4 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have 500 directories each with multiple data files inside them. The names are sort of random. For example, one directory has files named e_1.dat, e_5.dat, e_8.dat, etc. I need to move the files to a single directory and rename them all in numerical order, from 1.dat to 1000(or some... (1 Reply)
Discussion started by: renthead720
1 Replies
7. UNIX for Dummies Questions & Answers
I am running a code like this
foreach list ($tmp)
mv *_${list}.txt ${chart}_${list}.txt #mv: when moving multiple files, last argument must be a directory
mv *_${list}.doc ${chart}_${list}.doc #mv: when moving multiple files, last argument must be a... (3 Replies)
Discussion started by: animesharma
3 Replies
8. UNIX for Advanced & Expert Users
I want to search for a particular file name patterns and move them to a specific folder, is it possible to do it with awk or sed? (1 Reply)
Discussion started by: rudoraj
1 Replies
9. Shell Programming and Scripting
Hi.
I am trying to automate the movement and renaming of a number of files in a directory. I am using the 'mv' command as I do not have access to 'rename'. I have the following scripted FILES=$(ls /transfer/move/sys/mail/20130123/)
if ; then
for i in ${FILES} ; do
mv... (4 Replies)
Discussion started by: jimbojames
4 Replies
10. UNIX for Dummies Questions & Answers
Hello all,
I'm writing a script that will allow me to move files into a sub-directory for archiving. These files, specifically, are output files that result at the end of a process. The issue I'm having is that while moving files from one place to another is relatively an easy task, grabbing... (2 Replies)
Discussion started by: galileo1
2 Replies
LEARN ABOUT CENTOS
ddi_intr_dup_handler
ddi_intr_dup_handler(9F) ddi_intr_dup_handler(9F)
NAME
ddi_intr_dup_handler - reuse interrupt handler and arguments for MSI-X interrupts
SYNOPSIS
#include <sys/types.h>
#include <sys/conf.h>
#include <sys/ddi.h>
#include <sys/sunddi.h>
int ddi_intr_dup_handler(ddi_intr_handle_t orig, int vector, ddi_intr_handle_t *new);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
orig Pointer to the the original DDI interrupt handle
vector Contains the interrupt number to which to duplicate
new Pointer to the new DDI interrupt handle
The ddi_intr_dup_handler() function is for MSI-X interrupts, where an unallocated interrupt vector is permitted to use the same MSI-X
address/data pair, interrupt handler, and handler arguments as a previously initialized/allocated interrupt vector. The ddi_intr_dup_han-
dler() function copies the entry from the interrupt handle given by orig to the unallocated MSI-X interrupt vector given by the argument
vector. If successful, it returns the new interrupt handle for given vector in new.
The ddi_intr_dup_handler() function must be called after the orig interrupt handler has been added. The new interrupt handle must not have
been previously allocated and must not have an interrupt handler associated with it.
The ddi_intr_remove_handler() function can be used to disassociate handlers when the interrupt is disabled and to remove disabled dup-ed
interrupt handlers. See ddi_intr_disable(9F).
A call to ddi_intr_dup_handler() does not imply that the interrupt source is automatically enabled. The interrupt must be enabled before it
can be used by calling ddi_intr_enable(9F).
The ddi_intr_dup_handler() function returns:
DDI_SUCCESS On success.
DDI_EINVAL On encountering invalid input parameters. DDI_EINVAL will also be returned if the hardware device is found not to
support MSI-X interrupts.
DDI_FAILURE On any implementation specific failure.
CONTEXT
The ddi_intr_dup_handler() function can be called from kernel non-interrupt context.
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
attributes(5), ddi_intr_add_handler(9F), ddi_intr_alloc(9F), ddi_intr_block_enable(9F), ddi_intr_disable(9F), ddi_intr_enable(9F),
ddi_intr_get_supported_types(9F), ddi_intr_remove_handler(9F)
Any consumer of this interface should verify that the return value is not equal to DDI_SUCCESS. Incomplete checking for failure codes could
result in inconsistent behavior among platforms.
07 Apr 2005 ddi_intr_dup_handler(9F)