: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)
how to rename many files with one command
package_cypdba.acapx_p.sql
package_cypdba.ccapx_p.sql
package_cypdba.bcapx_p.sql
these to be renamed as
acapx_p.sql
ccapx_p.sql
bcapx_p.sql
thanx (4 Replies)
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)
Hi,
I am new to Unix and i have a requirement where i need to write a shell script where i have to loop through various files present in a directory and rename them based on below criteria.
Files in the folder are in the following format. _YYYYMMDD.dat]
SDL_V1_20100530.dat... (6 Replies)
I have four files, I need to compare these files together.
As such i know "sdiff and comm" commands but these commands compare 2 files together. If I use sdiff command then i have to compare each file with other which will increase the codes.
Please suggest if you know some commands whcih can... (6 Replies)
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)
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)
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)
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)