02-09-2011
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
example test1 will have m1234567.12a
I would like to rename in batch but I don't Please help me on this.
cd /a1/a2/a3
test1=$(basename /a1/a2/a3/*.*) >> /tmp/t
echo $test1
echo "Extracting 8 th position" >> /tmp/t2
awk '{print substr($1,8,1); }' $test1 >> /tmp/t3
echo "extraction ... (3 Replies)
Discussion started by: kathy18
3 Replies
2. UNIX for Advanced & Expert Users
In my dir there are files like
a.xml
b.xml
abnc.xml
12.abc.xml
12.anc.sfoioi.xml
I need to remove .xml from all the files
Is there any direct way without using any for/do loop
Right now i am using
for file in *
do
... (7 Replies)
Discussion started by: reldb
7 Replies
3. UNIX for Dummies Questions & Answers
<! pad_meth: <! program = "/usr/lib/drivers/pse/x29d -p"
how should i program it in oder to display this:
<! pad_meth:
<! program = "/usr/lib/drivers/pse/x29d -p"
;) (1 Reply)
Discussion started by: rita1985
1 Replies
4. UNIX for Dummies Questions & Answers
I would like to replace multiple underscores with hyphens but I have 26,000 files to rename. They are all in one file structure and multiple sub-directories.
It would be much simpler if I had a script to do it. Here are some samples of the file names:
Example 1... (3 Replies)
Discussion started by: ..Chris..
3 Replies
5. Shell Programming and Scripting
Hi,
Here is what I want to do
I want to search local directory and its sub directory, all the files which contain any string like _12345, then remove this string.
String is a combination of _ plus a random integer number.
For example, here is one line in a file before
<properties... (1 Reply)
Discussion started by: bp5000
1 Replies
6. Shell Programming and Scripting
Hello all
I am trying to do a script that would allow me to mass rename files after a grep search within them. They are XML files and the pattern I would like to append to the file name is easy to find (e.g. <filename>foo</filename>), but I can't for the life of me find out how to do it and... (2 Replies)
Discussion started by: aavv
2 Replies
7. Shell Programming and Scripting
Hi all,
I do not have programming experience and mostly use one-liner or sometimes more to get the job done. I am having problem to batch rename the files that do not match a particular pattern.
Sample file-names from directory:
Meeting_Packages.pdf 13_textfile0 19_textfile0 ... (3 Replies)
Discussion started by: atulkakrana
3 Replies
8. Shell Programming and Scripting
Hello All,
I need help in writing a batch script.
I have 100 zip files in a folder. Each zip file has a unique name starting with XYZ_12345.zip Each zip file contains single csv file
I would like to batch extract the files and also rename the extracted csv as per the original zip name... (6 Replies)
Discussion started by: rajlakshmi
6 Replies
9. UNIX for Dummies Questions & Answers
hi,
i have a folder with 2000 text file where each file contain a string.
i need to trasform this string like this:
example of file : My name is Mark and I'm a child
the new file must be:
insert into tabella ('My name','My name is Mark and I'm a child');
where the first column is a... (11 Replies)
Discussion started by: yo-yo78
11 Replies
10. Shell Programming and Scripting
Hi!!
I want to create a batch file so the sh file could change a file on a specific time.
I made this config:
sed -i 's/range 192.168.1.200 192.168.1.220;/option POLYCOM "tftp://10.20.1.10";/g' /etc/dhcp3/dhcpd.conf
My issue is that the sed does not accept the :// character.... (2 Replies)
Discussion started by: jocas9
2 Replies
LEARN ABOUT DEBIAN
g_principal
g_principal(1) GROMACS suite, VERSION 4.5.4-dev-20110404-bc5695c g_principal(1)
NAME
g_principal - calculates axes of inertia for a group of atoms
VERSION 4.5.4-dev-20110404-bc5695c
SYNOPSIS
g_principal -f traj.xtc -s topol.tpr -n index.ndx -a1 axis1.dat -a2 axis2.dat -a3 axis3.dat -om moi.dat -[no]h -[no]version -nice int -b
time -e time -dt time -tu enum -[no]w -[no]foo
DESCRIPTION
g_principal calculates the three principal axes of inertia for a group of atoms.
FILES
-f traj.xtc Input
Trajectory: xtc trr trj gro g96 pdb cpt
-s topol.tpr Input
Structure+mass(db): tpr tpb tpa gro g96 pdb
-n index.ndx Input, Opt.
Index file
-a1 axis1.dat Output
Generic data file
-a2 axis2.dat Output
Generic data file
-a3 axis3.dat Output
Generic data file
-om moi.dat Output
Generic data file
OTHER OPTIONS
-[no]hno
Print help info and quit
-[no]versionno
Print version info and quit
-nice int 19
Set the nicelevel
-b time 0
First frame (ps) to read from trajectory
-e time 0
Last frame (ps) to read from trajectory
-dt time 0
Only use frame when t MOD dt = first time (ps)
-tu enum ps
Time unit: fs, ps, ns, us, ms or s
-[no]wno
View output .xvg, .xpm, .eps and .pdb files
-[no]foono
Dummy option to avoid empty array
SEE ALSO
gromacs(7)
More information about GROMACS is available at <http://www.gromacs.org/>.
Mon 4 Apr 2011 g_principal(1)