Sponsored Content
Full Discussion: Rename files in a format
Top Forums Shell Programming and Scripting Rename files in a format Post 302858323 by bghosh on Monday 30th of September 2013 05:02:27 AM
Old 09-30-2013
Rename files in a format

Hi All,

I have a requirement like, the source file is in the format :
XXXXXXXX.D0000.GZZZZ

I have to rename the file in the format :

XXXXXXXX.XXXXXXXX.D0000.GZZZZV00

I have to only rename the file if and only if the source file format has 3 parts as shown above.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to rename files?

:confused: How can i rename a file 'x.log' to 'x_20020512 072909.log' :eek: i'm using perl, with system command from a unix web server, and need to timestamp my logs if the above format (filename _ year month day hr min sec .log) (9 Replies)
Discussion started by: CompuTelSystem
9 Replies

2. Shell Programming and Scripting

rename files

hey all, I have files in the format of ABCD20061101 and ABCDEF20061101 in one directory, I would like to change all ABCD20061101 to ABCDEF20061101 and the problem is if I do a simple pattern match of ABCD, then those ABCDEF20061101 would also... (2 Replies)
Discussion started by: mpang_
2 Replies

3. Shell Programming and Scripting

Rename files

Hello, I've a list of file like this img_001 img_22 img_44 and I would rename all with this form photo_0001 photo_0002 photo_0003 photo_0004 suggestions?Thanks to all. (2 Replies)
Discussion started by: cv313x
2 Replies

4. Shell Programming and Scripting

rename files Ax based on strings found in files Bx

Hi, I'm not very experienced in shell scripting and that's probably why I came across the following problem: I do have several hundred pairs of text files (PF00x.spl and PF00x.shd) where the first file (PF00x.spl) needs to be renamed according a string that is included in the second file... (12 Replies)
Discussion started by: inCH
12 Replies

5. UNIX for Dummies Questions & Answers

Rename all .sh files to .pl

I have various .sh and .pl files in one directory. I want to rename all the .sh files to .pl i.e testscript.sh --> testscript.pl I am trying to use mv *.sh *.pl It doesnt work though!! (3 Replies)
Discussion started by: chrisjones
3 Replies

6. Shell Programming and Scripting

Need script for transferring bulk files from one format to text format

"Help Me" Need script for transferring bulk files from one format to text format in a unix server. Please suggest (2 Replies)
Discussion started by: Kranthi Kumar
2 Replies

7. UNIX for Dummies Questions & Answers

Rename all Files in a UNIX Directory from one date format to another date format

Hi Unix Gurus, I would like to rename several files in a Unix Directory . The filenames can have more than 1 underscore ( _ ) and the last underscore is always followed by a date in the format mmddyyyy. The Extension of the files can be .txt or .pdf or .xls etc and is case insensitive ie... (1 Reply)
Discussion started by: pchegoor
1 Replies

8. Shell Programming and Scripting

Script to unzip files and Rename the Output-files

Hi all, I have a many folders with zipped files in them. The zipped files are txt files from different folders. The txt files have the same names. If i try to find . -type f -name "*.zip" -exec cp -R {} /myhome/ZIP \; it fails since the ZIP files from different folders have the same names and... (2 Replies)
Discussion started by: pmkenya
2 Replies

9. Shell Programming and Scripting

Rename files

I am getting some files with this mask: aaaa_SP_bbb.txt aaaa_FX_bbbb.txt aaaabbbb.txt I want to rename the files containing: _SP_ -> Rename - >> fileSP.TXT _FX_ -> Rename - >> fileFX.txt and other file that does not contain these words rename them: filenamexx.txt as I... (4 Replies)
Discussion started by: Jomeaide
4 Replies

10. Shell Programming and Scripting

SBATCH trinity for multiple files and rename/move the output files

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
DateTime::Locale::kn(3) 				User Contributed Perl Documentation				   DateTime::Locale::kn(3)

NAME
DateTime::Locale::kn SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'kn' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Kannada. DATA
This locale inherits from the DateTime::Locale::root locale. It contains the following data. Days Wide (format) XXXXXX XXXXXXX XXXXXX XXXXXXX XXXXXXXX XXXXXX XXXXXX Abbreviated (format) XX. XX. XX. XX. XX. XXX. X. Narrow (format) XX XX XX XX XX X X Wide (stand-alone) XXXXXX XXXXXXX XXXXXX XXXXXXX XXXXXXXX XXXXXX XXXXXX Abbreviated (stand-alone) XX. XX. XX. XX. XX. XXX. X. Narrow (stand-alone) XX XX XX XX XX X X Months Wide (format) XXXXX XXXXXXXX XXXXXX XXXXXXX XX XXXX XXXX XXXXXX XXXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX Abbreviated (format) XXXXX XXXXXXXX XXXXXX XXXXXXX XX XXXX XXXX XXXXXX XXXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX Narrow (format) X XX XX X XX XX XX X XX X X XX Wide (stand-alone) XXXXX XXXXXXXX XXXXXX XXXXXXX XX XXXX XXXX XXXXXX XXXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX Abbreviated (stand-alone) XXXXX XXXXXXXX XXXXXX XXXXXXX XX XXXX XXXX XXXXXX XXXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX Narrow (stand-alone) X XX XX X XX XX XX X XX X X XX Quarters Wide (format) XXXX 1 XXXX 2 XXXX 3 XXXXX 4 Abbreviated (format) Q1 Q2 Q3 Q4 Narrow (format) 1 2 3 4 Wide (stand-alone) XXXX 1 XXXX 2 XXXX 3 XXXXX 4 Abbreviated (stand-alone) Q1 Q2 Q3 Q4 Narrow (stand-alone) 1 2 3 4 Eras Wide XXXXXX. XXXXXXX XX Abbreviated BCE CE Narrow BCE CE Date Formats Full 2008-02-05T18:30:30 = XXXXXXX 5 XXXXXXXX 2008 1995-12-22T09:05:02 = XXXXXXXX 22 XXXXXXXX 1995 -0010-09-15T04:44:23 = XXXXXX 15 XXXXXXXXX -10 Long 2008-02-05T18:30:30 = 5 XXXXXXXX 2008 1995-12-22T09:05:02 = 22 XXXXXXXX 1995 -0010-09-15T04:44:23 = 15 XXXXXXXXX -10 Medium 2008-02-05T18:30:30 = 5 XXXXXXXX 2008 1995-12-22T09:05:02 = 22 XXXXXXXX 1995 -0010-09-15T04:44:23 = 15 XXXXXXXXX -10 Short 2008-02-05T18:30:30 = 5-2-08 1995-12-22T09:05:02 = 22-12-95 -0010-09-15T04:44:23 = 15-9--10 Default 2008-02-05T18:30:30 = 5 XXXXXXXX 2008 1995-12-22T09:05:02 = 22 XXXXXXXX 1995 -0010-09-15T04:44:23 = 15 XXXXXXXXX -10 Time Formats Full 2008-02-05T18:30:30 = 06:30:30 pm UTC 1995-12-22T09:05:02 = 09:05:02 am UTC -0010-09-15T04:44:23 = 04:44:23 am UTC Long 2008-02-05T18:30:30 = 06:30:30 pm UTC 1995-12-22T09:05:02 = 09:05:02 am UTC -0010-09-15T04:44:23 = 04:44:23 am UTC Medium 2008-02-05T18:30:30 = 06:30:30 pm 1995-12-22T09:05:02 = 09:05:02 am -0010-09-15T04:44:23 = 04:44:23 am Short 2008-02-05T18:30:30 = 06:30 pm 1995-12-22T09:05:02 = 09:05 am -0010-09-15T04:44:23 = 04:44 am Default 2008-02-05T18:30:30 = 06:30:30 pm 1995-12-22T09:05:02 = 09:05:02 am -0010-09-15T04:44:23 = 04:44:23 am Datetime Formats Full 2008-02-05T18:30:30 = XXXXXXX 5 XXXXXXXX 2008 06:30:30 pm UTC 1995-12-22T09:05:02 = XXXXXXXX 22 XXXXXXXX 1995 09:05:02 am UTC -0010-09-15T04:44:23 = XXXXXX 15 XXXXXXXXX -10 04:44:23 am UTC Long 2008-02-05T18:30:30 = 5 XXXXXXXX 2008 06:30:30 pm UTC 1995-12-22T09:05:02 = 22 XXXXXXXX 1995 09:05:02 am UTC -0010-09-15T04:44:23 = 15 XXXXXXXXX -10 04:44:23 am UTC Medium 2008-02-05T18:30:30 = 5 XXXXXXXX 2008 06:30:30 pm 1995-12-22T09:05:02 = 22 XXXXXXXX 1995 09:05:02 am -0010-09-15T04:44:23 = 15 XXXXXXXXX -10 04:44:23 am Short 2008-02-05T18:30:30 = 5-2-08 06:30 pm 1995-12-22T09:05:02 = 22-12-95 09:05 am -0010-09-15T04:44:23 = 15-9--10 04:44 am Default 2008-02-05T18:30:30 = 5 XXXXXXXX 2008 06:30:30 pm 1995-12-22T09:05:02 = 22 XXXXXXXX 1995 09:05:02 am -0010-09-15T04:44:23 = 15 XXXXXXXXX -10 04:44:23 am Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 XX. 1995-12-22T09:05:02 = 22 XX. -0010-09-15T04:44:23 = 15 XXX. Hm (H:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 9:05 -0010-09-15T04:44:23 = 4:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 pm 1995-12-22T09:05:02 = 9:05 am -0010-09-15T04:44:23 = 4:44 am Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 pm 1995-12-22T09:05:02 = 9:05:02 am -0010-09-15T04:44:23 = 4:44:23 am M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (M-d) 2008-02-05T18:30:30 = 2-5 1995-12-22T09:05:02 = 12-22 -0010-09-15T04:44:23 = 9-15 MEd (E, M-d) 2008-02-05T18:30:30 = XX., 2-5 1995-12-22T09:05:02 = XX., 12-22 -0010-09-15T04:44:23 = XXX., 9-15 MMdd (dd-MM) 2008-02-05T18:30:30 = 05-02 1995-12-22T09:05:02 = 22-12 -0010-09-15T04:44:23 = 15-09 MMM (LLL) 2008-02-05T18:30:30 = XXXXXXXX 1995-12-22T09:05:02 = XXXXXXXX -0010-09-15T04:44:23 = XXXXXXXXX MMMd (MMM d) 2008-02-05T18:30:30 = XXXXXXXX 5 1995-12-22T09:05:02 = XXXXXXXX 22 -0010-09-15T04:44:23 = XXXXXXXXX 15 MMMEd (E MMM d) 2008-02-05T18:30:30 = XX. XXXXXXXX 5 1995-12-22T09:05:02 = XX. XXXXXXXX 22 -0010-09-15T04:44:23 = XXX. XXXXXXXXX 15 MMMMd (d MMMM) 2008-02-05T18:30:30 = 5 XXXXXXXX 1995-12-22T09:05:02 = 22 XXXXXXXX -0010-09-15T04:44:23 = 15 XXXXXXXXX MMMMEd (E MMMM d) 2008-02-05T18:30:30 = XX. XXXXXXXX 5 1995-12-22T09:05:02 = XX. XXXXXXXX 22 -0010-09-15T04:44:23 = XXX. XXXXXXXXX 15 ms (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (y-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -10-9 yMEd (EEE, y-M-d) 2008-02-05T18:30:30 = XX., 2008-2-5 1995-12-22T09:05:02 = XX., 1995-12-22 -0010-09-15T04:44:23 = XXX., -10-9-15 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 XXXXXXXX 1995-12-22T09:05:02 = 1995 XXXXXXXX -0010-09-15T04:44:23 = -10 XXXXXXXXX yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = XX., 2008 XXXXXXXX 5 1995-12-22T09:05:02 = XX., 1995 XXXXXXXX 22 -0010-09-15T04:44:23 = XXX., -10 XXXXXXXXX 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 XXXXXXXX 1995-12-22T09:05:02 = 1995 XXXXXXXX -0010-09-15T04:44:23 = -10 XXXXXXXXX yQ (y Q) 2008-02-05T18:30:30 = 2008 1 1995-12-22T09:05:02 = 1995 4 -0010-09-15T04:44:23 = -10 3 yQQQ (y QQQ) 2008-02-05T18:30:30 = 2008 Q1 1995-12-22T09:05:02 = 1995 Q4 -0010-09-15T04:44:23 = -10 Q3 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 yyyyMM (MM-yyyy) 2008-02-05T18:30:30 = 02-2008 1995-12-22T09:05:02 = 12-1995 -0010-09-15T04:44:23 = 09--010 yyyyMMMM (MMMM y) 2008-02-05T18:30:30 = XXXXXXXX 2008 1995-12-22T09:05:02 = XXXXXXXX 1995 -0010-09-15T04:44:23 = XXXXXXXXX -10 Miscellaneous Prefers 24 hour time? No Local first day of the week XXXXXX SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.16.2 2013-08-25 DateTime::Locale::kn(3)
All times are GMT -4. The time now is 07:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy