Search Results

Search: Posts Made By: rockytodd
6,718
Posted By rockytodd
Remove brackets { } in the data
Hello folks,

I have a data file in which each line has 54 numbers, and every 3 numbers are bracketed. So totally 18 pairs of brackets in each line.

A typical line is like:
...
1,462
Posted By rockytodd
Thanks so much! Combining you three's...
Thanks so much!
Combining you three's solutions, it works perfectly!
Have a good day!
1,462
Posted By rockytodd
identify files with "Normal termination" and compress them into a .tar.gz file
Hi,

I have hundreds of files "*.out" located in one folder,
and I want to:
1. Identify the good files containing "Normal termination" (grep "Normal termination" *.out )
2. Compress the good...
3,110
Posted By rockytodd
It works. Thanks a lot!
It works.
Thanks a lot!
3,110
Posted By rockytodd
Thanks a lot, summer cherry! Anyone can help on...
Thanks a lot, summer cherry!
Anyone can help on a C shell version?
Appreciate your time!
3,110
Posted By rockytodd
C shell--take the minimum of a column
I have a data file with two columns,
for the second column I want to find the minimum,
and subtract this minimum from each value in the second column,
how to realize this using C shell

For...
27,103
Posted By rockytodd
Thanks vbe! set ac `echo $AC | tr...
Thanks vbe!


set ac `echo $AC | tr "[:upper:]" "[:lower:]"`

does the job well
27,103
Posted By rockytodd
[Solved] Change Upper case to Lower case in C shell
Is there a command that can switch a character variable from UPPER case to lower case?
like

foreach AC ( ABC BCD PLL QIO)
set ac `COMMAND($AC)`
...
end

Thanks a lot!
1,649
Posted By rockytodd
Thanks a lot, it works
Thanks a lot, it works
1,649
Posted By rockytodd
cshell integer expression from "0000" to "1999"
I have 2000 files named like "file-fr0000.log", "file-fr1999.log"...
I wanna generate the file names automatically in the following c shell script:


set fr = 0
while ($fr <= 1999)
grep...
3,857
Posted By rockytodd
frans and konsolebox, They worked. Thanks...
frans and konsolebox,
They worked.

Thanks a lot! Appreciate your help.
3,857
Posted By rockytodd
BASH help: translate a short csh script to bash
Hi,

I have a csh:

set NODES = `cat $HOST_FILE`
set NODELIST = $TMPDIR/namd2.nodelist
echo group main >! $NODELIST
foreach node ( $NODES )
echo host $node >> $NODELIST
end
...
2,886
Posted By rockytodd
Thanks a lot, it works well, could you please...
Thanks a lot, it works well, could you please explain the code a little bit?
2,886
Posted By rockytodd
add a column and match two files
I have two files:
File #1:
......
ATOM 91 H2'' G A 3 17.357 8.753 -30.401 1.00 0.00 A
ATOM 92 O2' G A 3 16.590 9.059 -28.495 1.00 0.00 ...
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 01:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy