02-09-2012
move set of files to the target path with different extension
I have the following files in the dir /home/krishna/datatemp
abc.xml
cde.xml
asfd.txt
asdf_20120101-1.xml
asdf_20120101-2.xml
asdf_20120101-3.xml
asdf_20120101-4.xml
Now I need to move the files having the pattern asdf_20120101-*.xml to the dir /home/krishna/dataout with the extn as follows.
asdf_20120101-1.mcc
asdf_20120101-2.mcc
asdf_20120101-3.mcc
asdf_20120101-4.mcc
I may have any number of files matching the pattern asdf_20120101-*.xml. All the files needs to be moved to the path /home/krishna/dataout
can anyone help me out?
Thanks in advance.
Krishnakanth Manivannan
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Everyone!!!
Is there any command to move/copy set of files in a specific range.
Eg :
I have 800 text files in a directory
A1 ... A800
I would like to copy only files in range A40 ... A250.
I can acheive this using a "for" loop , but I guess there could be some command or... (8 Replies)
Discussion started by: joey_reddy
8 Replies
2. Shell Programming and Scripting
Hi Experts,
need one help.. m writing a shell script for which i need the entire path of the file but without its extension.
running the below script gives error at the statement DIR = `dirname $FILE` --command not found.
#!/bin/bash
jar xvf *jar
for FILE in `find . -name "*.class"`
... (3 Replies)
Discussion started by: amicableperson
3 Replies
3. Shell Programming and Scripting
Hi,
First off I'm pretty new to scripting so please be gentle.
I am looking for some help with a script that will move all files with a certain extension into a folder within their current location.
Just for clarity I have all my photos organised in directories such as:
... (4 Replies)
Discussion started by: guinch
4 Replies
4. Solaris
Installing Solaris x86 using jumpstart does not set the hostname for the target. Any idea where do we need to specify hostname to be set for jumpstart installation. (1 Reply)
Discussion started by: hemalsid
1 Replies
5. Shell Programming and Scripting
Hi All,
I am trying to rename the extension of a set of file from .txt to .xtx. When I run the following script,
#!/bin/sh
l=`ls /f`
for f in $l
do "mv $f ${f%.txt}.xtx" ;
done
a file such as 1.txt is renamed to 1? where ? is a strange character. Could you please help me fix the code... (3 Replies)
Discussion started by: sara123
3 Replies
6. Shell Programming and Scripting
I am trying to get the full path of the target of a symlink.
root@server # ll /usr/src/sourcefile
lrwxrwxrwx 1 root root 13 Jan 21 00:56 /usr/src/sourcefile -> ../targetfile
root@server # readlink /usr/src/sourcefile
../targetfile
I need readlink output as /usr/targetfile. If with... (1 Reply)
Discussion started by: anil510
1 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I want to fetch the files based on .done file and display the .csv files and Wil take .csv files for processing.
1.I need to display the .done files from the directory.
2.next i need to search for the .Csv files based on .done file.then move .csv files for the one directory
... (2 Replies)
Discussion started by: girija.g6
2 Replies
8. Shell Programming and Scripting
Hi,
I am looking for a shell script which move .300 extension files from /home/sofia/ to /home/sofia/test and sends me an email with the list of files moved like this :-
The following files has been moved from /home/sofia/ to /home/sofia/test
1. alpha.300
2. beta.300
Email only if the... (4 Replies)
Discussion started by: sofia8679
4 Replies
9. Shell Programming and Scripting
Dear Experts
my scenario is as follows...
I have one source folder "Source" and 2 target folders "Target_123456" & "Target_789101". I have 2 series of files. 123456 series and 789101 series. Each series has got 3 types of fiels "Debit", "Refund", "Claims".
All files are getting... (17 Replies)
Discussion started by: phani333
17 Replies
10. Shell Programming and Scripting
The bash will trim the folder to trim folder. Within each of the folders (there may be more than 1) and the format is always the same, are several .bam and matching .bam.bai files (file structure) and the bashunder that executes and trims the .bam as expected but repeats the.bam.bai extentions... (9 Replies)
Discussion started by: cmccabe
9 Replies
LEARN ABOUT SUSE
xml-resolver
XML-RESOLVER(1) User Commands XML-RESOLVER(1)
NAME
xml-resolver - Resolve XML entities and URIs
SYNOPSIS
xml-resolver [options] keyword
DESCRIPTION
xml-resolver is a simple command line XML entity and URI resolver. It takes a number of parameters and passes them through the actual
resolver class, and prints out the result.
The keyword argument identifies the type of resolution to perform, it must be one of "doctype", "document", "entity", "notation", "public",
"system", or "uri".
OPTIONS
-c catalogfile
Load a particular catalog file. May be specified multiple times.
-n name
Set the name.
-p publicid
Set the public identifier.
-s systemid
Set the system identifier.
-a Make the system URI absolute before resolution.
-u uri Set the URI.
-d debuglevel
Set the debug level (an integer). The default is 0.
FILES
/etc/java/resolver/CatalogManager.properties
The central catalog manager configuration file used by xml-resolver.
SEE ALSO
xml-xread(1), xml-xparse(1), java(1), the OASIS entity resolution technical committee home page at <http://www.oasis-open.org/commit-
tees/entity/>.
AUTHOR
Norman Walsh <Norman.Walsh@Sun.COM>
1.1 July 2004 XML-RESOLVER(1)