Hi,
I need a shell script which changes a bunch of files in a particular directory from lowercase to UPPERCASE.
I am not very familiar with shell scripts so a detailed explanation would be greatly appreciated!!!!
Thanks ini advance!
:) (7 Replies)
I have many files with duplicate names spread out over several tens of directories. I would like to mv them to the parent directory, but to avoid conflicting filenames I'd like to prefix each filename with the name of the directory it was in.
For example, if this is my directory structure:... (2 Replies)
suppose i have a few file like "a b c.txt" , "hello world.c" etc...(files that have space between them in their filenames).
how do i change their filenames to "a_b_c.txt" and "hello_world.c" respectively?
heres what i have tried...but failed
$ find -name "*" -exec mv "{}" "`echo {} | tr "... (4 Replies)
So I am not sure if this should go in the shell forum or in the beginners. It is my first time posting on these forums.
I have a directory, main_dir lets say, with multiple sub directories (one_dir through onehundred_dir for example) and in each sub directory there is a test.txt. How would one... (2 Replies)
Hello,
I would like to rename all available files in a directory from Filename to Filename_Normal.
I tried to use below script but it is giving some error:
#!/bin/sh
for i in `ls`
do
echo Changing $i
mv $i $i_Normal
done
Error received:
Usage: mv src target
or: mv ... (10 Replies)
Hi.
I am trying to automate the movement and renaming of a number of files in a directory. I am using the 'mv' command as I do not have access to 'rename'. I have the following scripted FILES=$(ls /transfer/move/sys/mail/20130123/)
if ; then
for i in ${FILES} ; do
mv... (4 Replies)
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)
Hi
I think this should be relatively simple but I can't figure it out. I have several files with the same name in different folders within a directory (the output of a program that I ran). Something like this:
./myAnalysis/item1/round1/myoutput.txt
./myAnalysis/item1/round2/myoutput.txt... (2 Replies)
Below is the script i have but i would like simplified but still do the same job.
I need a script to copy files not directories or sub-directories into a existing or new directory. The files, if have the same name but different extension; for example 01.doc 01.pdf then only copy the .doc file. ... (1 Reply)
Hi All,
I need to copy files from one directory to another with the files to be renamed while copying if a file with the same name already exists in the target directory.
THanks,
Dev (2 Replies)
Discussion started by: dev.devil.1983
2 Replies
LEARN ABOUT DEBIAN
asn2asn
ASN2ASN(1) NCBI Tools User's Manual ASN2ASN(1)NAME
asn2asn - convert NCBI data between text and binary ASN.1
SYNOPSIS
asn2asn [-] [-b] [-e] [-i filename] [-l filename] [-o filename] [-s] [-x]
DESCRIPTION
asn2asn converts data in NCBI's ASN.1 format between binary and text subformats, or to isomorphic XML.
OPTIONS
A summary of options is included below.
- Print usage message
-b Input asnfile in binary mode
-e Input is a Seq-entry
-i filename
Read input from filename rather than stdin
-l filename
Log errors to filename
-o filename
Write output to filename rather than stdout
-s Output asnfile in binary mode
-x Output XML instead of ASN.1
AUTHOR
The National Center for Biotechnology Information.
SEE ALSO asn2ff(1), asn2gb(1), asn2xml(1), asndhuff(1)NCBI 2002-08-30 ASN2ASN(1)