12-31-2014
Thanks Now I got it. With your command I can put the content of file in some temp file before opening it with cat.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have a .txt file
Sample:
=====================
NEXT HOST
=====================
AEADBAS001
ip access-list extended BLA_Incoming_Filter
ip access-list extended BLA_Outgoing_Filter
access-list 1 permit xxxxxxxxxxxxxx
access-list 2 permit xxxxxxxxxxxxxx
=====================... (4 Replies)
Discussion started by: I-1
4 Replies
2. Shell Programming and Scripting
Hello,
So I sorted my file as I was supposed to:
sort -n -r -k 2 -k 1 file1 | uniq > file2
and when I wrote
> cat file2
in the command line, I got what I was expecting, but in the script itself
...
sort -n -r -k 2 -k 1 averages | uniq > temp
cat file2
It wrote a whole... (21 Replies)
Discussion started by: shira
21 Replies
3. OS X (Apple)
I've been trying to figure this out since last night, and I'm just stumped. The last time I did any shell scripting was 8 years ago on a Unix box, and it was never my strong suit. I'm on a Mac running Leopard now. Here's my dilemma - hopefully someone can point me in the right direction.
I'm... (10 Replies)
Discussion started by: Daniel M. Clark
10 Replies
4. UNIX for Dummies Questions & Answers
Hello ,
I am newbie to UNIX platform .
I have read that there are two ways of creating files that is using
1.) Cat 2.) touch .
With Cat Command i am unable to create a File , i is saying No file or Directory exists
I logged in with root as user .
please help (7 Replies)
Discussion started by: Ravi Pavanv
7 Replies
5. Shell Programming and Scripting
Hi, I have a question.
I define a function using sed command:
replace()
{
searchterm=$1
replaceterm=$2
sed -e "s/$searchterm/$replaceterm/ig" $3 > $WORK'tempfile.tmp'
mv $WORK'tempfile.tmp' $3
}
Then I call
replace 'test = 0' 'test = 1' $myfileThis code works well in... (1 Reply)
Discussion started by: Dark2Bright
1 Replies
6. Shell Programming and Scripting
Hi, I have a question.
I define a function using sed command:
replace()
{
searchterm=$1
replaceterm=$2
sed -e "s/$searchterm/$replaceterm/ig" $3 > $WORK'tempfile.tmp'
mv $WORK'tempfile.tmp' $3
}
Then I call
replace 'test = 0' 'test = 1' $myfile
This code... (1 Reply)
Discussion started by: Dark2Bright
1 Replies
7. UNIX for Advanced & Expert Users
Hi,
I want to add the library in my configure file. i am doing it using autoconf in ubuntu. I am new to the autoconf.
Can anyone please let me know how to add the library using configure file so that it can linked to my software which I am using?
Thanks in advance!!!!! (0 Replies)
Discussion started by: diehard
0 Replies
8. UNIX for Beginners Questions & Answers
Hello,
I am on a Mac and trying to clean up some monthly files with a very simple SED:
sed '3,10d;/<ACROSS>/,$d' input.txt > output.txt
(from the input, delete lines 3 - 10; then delete from the line containing <ACROSS> to the end of the file)
then output to output.txt
Even when I try... (2 Replies)
Discussion started by: verbatim
2 Replies
LEARN ABOUT DEBIAN
rings3d
RINGS3D(1) General Commands Manual RINGS3D(1)
NAME
rigns3d - produces a file of ring-filling triangles from a PDB file
SYNOPSIS
rings3d [-bases] [-protein] [-sugars] < infile.pdb > outfile.r3d
rings3d searches through a PDB file looking for residues containing 5- or 6-membered rings, then produces a Raster3D output file of ring-
filling triangles.
rings3d matches residue types from an internal list of residue and atom names. It will fail to find residues not in its list, and fail to
recognize atoms with non-standard names.
EXAMPLES
render a DNA molecule with the bases filled in:
cat $R3D_LIB/dna.colours dna.pdb | rods -radius 0.05 > temp.1
rings3d -bases < dna.pdb > temp.2
cat temp.1 temp.2 | render -tiff dna.tiff
OPTIONS
-bases
Fills in purine and pyrimidine rings from A C G T U residues.
-protein
Fills in sidechain rings of HIS PHE TRP and TYR residues.
-sugars
[This is the default] Fills in pyranose rings of GAL GLC NAG NGA MAN SIA residues.
BUGS
limited residue types
The database of residue types should be kept externally, so you don't have to rebuild the program to add a new type. There should be an
option to search for ring systems in un-recognized residue types. crinkled planes
There should be an option to do a least-squares best plane through supposedly flat rings. Then again, seeing a crease in a "flat" ring may
force people to consider whether their planarity restraints are tight enough.
SOURCE
anonymous ftp site:
ftp.bmsc.washington.edu
web URL:
http://www.bmsc.washington.edu/raster3d/raster3d.html
contact:
Ethan A Merritt
Dept of Biological Structure Box 357742
University of Washington, Seattle WA 98195
merritt@u.washington.edu
SEE ALSO
Raster3D(l)
AUTHORS
Ethan A Merritt.
This manual page was written by Nelson A. de Oliveira <naoliv@gmail.com>, for the Debian project (but may be used by others).
Raster3D RINGS3D(1)