04-22-2006
how to rename multiple files with a single command
Hi
I have following list of files at a path:
01.AR.asset
01.AR.index
01.AR.asset.vf
01.AR.asset.xv
I want to rename all these files as follows:
73.AR.asset.Z
73.AR.index.Z
73.AR.asset.vf.Z
73.AR.asset.xv.Z
Can any body give me a single command to acheive the above results.
Thnx & Regards,
Tayyab
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I want to rename multiple files at a time and I don't know how to do it.
I have various ".mp3" files, like "band name - music name.mp3" and I want to remove the "band name" from all files.
Anybody knows how to do it using shell script or sed or even perl?
Thanks (7 Replies)
Discussion started by: luiz_fer10
7 Replies
2. Shell Programming and Scripting
Well the title is not too good, so I will explain.
I need to move (rename) files using a simple AIX script.
???file1.txt
???file2.txt
???file1a.txt
???file2a.txt
to be:
???renamedfile1'date'.txt
???renamedfile2'date'.txt
???renamedfile1a'date'.txt
???renamedfile2a'date'.txt
... (4 Replies)
Discussion started by: grimace15
4 Replies
3. Shell Programming and Scripting
Dear All,
Please help !
i ham having 300 file with E.G. PMC1_4567.arc in seq. like PMC1_4568.arc,PMC1_4569.arc ...n and so on.. i want all those file to be rename like PMC_4567.arc ,PMC_4568.arc .. mean i want to remove 1 from first file name ..
pls help.. (6 Replies)
Discussion started by: moon_22
6 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I will use below command for grep single string ("osuser" is search string)
ex: find . -type f | xarg grep -il osuser
but i have one more string "v$session"
here i want to grep in which file these two strings are present.
any help is appreciated,
Thanks in advance.
Gagan (2 Replies)
Discussion started by: gagan4599
2 Replies
5. Shell Programming and Scripting
I have a log directory:
/logs/foo.log
/logs/bar.log
/logs/err.out
I'm trying to find a way to
> /logs/*.log
> /logs/*.out
to blank them out, but of course, that doesn't work.
Any suggestions? (4 Replies)
Discussion started by: Validatorian
4 Replies
6. Shell Programming and Scripting
Hi,
In my directory I have many files, for e.g.
file_123
file_124
file_125
file_126
file_127
Instead of renaming these files one by one, I would like to rename them at a same time using same command... they should appear like
123
124
125
126
127
What command(awk or ls or... (3 Replies)
Discussion started by: juzz4fun
3 Replies
7. Shell Programming and Scripting
Hi,
i need a single command to create multiple empty files(no trailing lines as well) and empty the files if already existing.
please let me know or if this has been ansered, if some ocan share the link please, thanks
> newfile.txt
or
:> newfile.txt
do not work (4 Replies)
Discussion started by: Onkar Banerjee
4 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I would like to sftp 2 files with a single command. I tried the below options,
sftp suer@test13:"/u01/home/oracle/SetDb.sh /u01/home/oracle/.profile" ./
But what actually happens is
Fetching /u01/home/oracle/SetDb.sh to /u01/home/oracle/.profile
/u01/home/oracle/SetDb.sh ... (3 Replies)
Discussion started by: sid2013
3 Replies
9. Shell Programming and Scripting
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
10. Shell Programming and Scripting
I have multiple files test1, test2, test3 etc. I want to move to a different directory with ABC_ prefixed to every file and and current dat time as postfix using a single command. (I will be using this is sftp with ! (command for local server).
I have tried the following but it gives error
... (5 Replies)
Discussion started by: Soham
5 Replies
LEARN ABOUT DEBIAN
prads2snort
PRADS2SNORT(1) networking PRADS2SNORT(1)
NAME
prads2snort - Snort autotuning of Frag3 and Stream5
SYNOPSIS
prads2snort -i /var/log/prads-asset.log -o /etc/snort/host_attributes.xml -d linux -v
DESCRIPTION
PRADS is a Passive Real-time Asset Detection System.
It passively listen to network traffic and gathers information on hosts and services it sees on the network. This information can be used
to map your network, letting you know what services and hosts are alive/used, or can be used together with your favorite IDS/IPS setup for
"event to host/service" correlation.
Gathering info about your hosts in real-time, will also let you detect assets that are just connected to the network for a short period of
time, where a active network scan (nmap etc.) would take long time, and not common to run continually, hence missing the asset.
The initial goal of implementing PRADS, was to make the host_attribute_table.xml for Snort (automatically).
PRADS2SNORT is the tool that does this!
OPTIONS
-i,--infile <file>
file to feed prads2snort.pl
-o,--outfile <file>
file to write host_attribute data to (host_attribute.xml)
-d,--default <os>
set Default OS if unknown (linux,bsd,macos,windows)
-v, --verbose
prints out OS, frag, stream and confidence of asset
-h, --help
this help message
--version
show prads2snort.pl version
PROBLEMS
1. Better mapping of less used apps to their correct snort attributes or drop them.
SEE ALSO
o PRADS <http://prads.projects.linpro.no/>
o p0f <http://lcamtuf.coredump.cx/p0f.shtml>
o PADS <http://passive.sourceforge.net/>
o Snort <http://snort.org>
o Sguil <http://sguil.net>
o Hogger <http://code.google.com/p/hogger/>
BUGS
Report bugs here:
o http://github.com/gamelinux/prads/issues
For general questions:
o http://projects.linpro.no/mailman/listinfo/prads-devel
o http://projects.linpro.no/mailman/listinfo/prads-users
AUTHOR
edwardfjellskaal@gmail.com
COPYRIGHT
GPL
0.2 2010-06-21 PRADS2SNORT(1)