08-19-2008
Quote:
Originally Posted by
prashant43
Try
mv sample.F1.Test sample.csv
mv test.F1.Test test.csv
dear prashant,
this code will move the original file but he want to rename it not to move i guess...
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Greetings!
Does anyone know of a utility or a script for renaming files on a UNIX web server? I've seen several of these types of renaming utilities for Windows, but none for UNIX. I have 10,000 files that I need to rename in a several tier (deep) web site directory. I have the original... (1 Reply)
Discussion started by: everettr
1 Replies
2. Shell Programming and Scripting
Greetings!
Does anyone know of a utility or a script for renaming files on a UNIX web server? I've seen several of these types of renaming utilities for Windows, but none for UNIX. I have 10,000 files that I need to rename in a several tier (deep) web site directory. I have the original... (2 Replies)
Discussion started by: everettr
2 Replies
3. Shell Programming and Scripting
have this shl that will FTP a file from the a directory in windows to UNIX, It get the name of the file stored in this variable $UpLoadFileName then put in the local directory LocalDir="${MPATH}/xxxxx/dat_files" that part seems to be working, but then I need to take that file and rename, I am using... (3 Replies)
Discussion started by: rechever
3 Replies
4. Shell Programming and Scripting
I have to rename a large number of files so that the name of each file corresponds to a code number that is given side by side in a list (textfile).
The list contains in column A the filename of the actual files to be renamed and in column B the name (a client code, 9 digits) that has to be... (7 Replies)
Discussion started by: netfreighter
7 Replies
5. UNIX for Dummies Questions & Answers
I am trying to move a file to a new file with a datestamp in the filename on a unix server using a script I am trying to write. I have searched this forum and have tried 100 different variations but cannot solve my problem.
My requirement is: Rename archiveSF\sfglsoarian.txt to... (3 Replies)
Discussion started by: cavleader
3 Replies
6. OS X (Apple)
Hello everyone, this is my first post and I am by no means a unix expert, so I hope I explain my issue well.
I'm on a mac (mac mini), 10.7.
My question is about serial port names. I have an arduino microcontroller plugged in via usb, and every time the computer is shut down it gives the... (0 Replies)
Discussion started by: superliminal
0 Replies
7. Shell Programming and Scripting
Hi all,
i'm just after some help regarding a batch script.
I'm wanting to create a windows batch script which will push a file from my pc to a unix (AIX) system via ftp. i have this part working fine but as the file i'm sending already exists i want the script to also take a sideways copy of... (6 Replies)
Discussion started by: forefather1977
6 Replies
8. UNIX for Dummies Questions & Answers
I have mulitiple files in a unix directory e.g.
FILE10001.txt
FILE10002.txt
I want the above two files to get renamed as by a single command. I tried with mv but it does not work
FILE20001.txt
FILE20002.txt
Paresh (6 Replies)
Discussion started by: Pash
6 Replies
9. Shell Programming and Scripting
Hi
Am trying to move a file from one name to another
When I do "ls" to check for the moved filename
I can see the file but when I try the same with a script am unable..
I think am doing some pretty silly error.. please help..
toMove=`ls | grep -E "partition.+"`
mv $toMove partition._org... (7 Replies)
Discussion started by: Priya Amaresh
7 Replies
10. Shell Programming and Scripting
Hi all,
I am looking for a script which renames all the files from the present directory.
Eg.:
In unix directory contains the below files
linux001.txt
linux002.txt
linux003.txt
......
.......
Now the files should be renamed to
unix001.txt
unix002.txt
unix003.txt
Could anyone... (8 Replies)
Discussion started by: scriptscript
8 Replies
LEARN ABOUT DEBIAN
test::unit::result
Test::Unit::Result(3pm) User Contributed Perl Documentation Test::Unit::Result(3pm)
NAME
Test::Unit::Result - unit testing framework helper class
SYNOPSIS
This class is not intended to be used directly
DESCRIPTION
This class is used by the framework to record the results of tests, which will throw an instance of a subclass of Test::Unit::Exception in
case of errors or failures.
To achieve this, this class gets called with a test case as argument. It will call this test case's run method back and catch any excep-
tions thrown.
It could be argued that Test::Unit::Result is the heart of the PerlUnit framework, since TestCase classes vary, and you can use one of sev-
eral Test::Unit::TestRunners, but we always gather the results in a Test::Unit::Result object.
This is the quintessential call tree of the communication needed to record the results of a given test:
$aTestCase->run() {
# creates result
$aTestResult->run($aTestCase) {
# catches exception and records it
$aTestCase->run_bare() {
# runs test method inside eval
$aTestCase->run_test() {
# calls method $aTestCase->name()
# and propagates exception
# method will call Assert::assert()
# to cause failure if test fails on
# test assertion
# it finds this because $aTestCase is-a Assert
}
}
}
}
Note too that, in the presence of Test::Unit::TestSuites, this call tree can get a little more convoluted, but if you bear the above in
mind it should be apparent what's going on.
AUTHOR
Copyright (c) 2000-2002, 2005 the PerlUnit Development Team (see Test::Unit or the AUTHORS file included in this distribution).
All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
o Test::Unit::Assert
o Test::Unit::TestCase
o Test::Unit::Exception
perl v5.8.8 2006-09-13 Test::Unit::Result(3pm)