Hello,
I have a pattern like "XXXXXX XXXXXX" which i need to make search in a input file and Replace the matched pattern to a another pattern.
This is the code i tried ..
#!/usr/bin/perl
print "Enter a File name :";
chomp ($file = <STDIN>);
print "\n Searching file :";
if (system ("ls... (2 Replies)
Hello All,
I need help I have a problem in searching the pattern in a file
let us say the file contains the below lines
line 1 USING *'/FILE/FOLDER/RETURN')
.................
.................
line 4 USING *'/FILE/FOLDER/6kdat1')
line 5 USING... (2 Replies)
Task is to identify files like code.1 , code.23 and so on ... (the files which are ending with a number) but it should not match files like code.123abc. So the search will normally search for files with "code." and at the end we should extract for the correct match. Now I have to remove these files... (6 Replies)
Hi,
I am trying to replace a specific column values in a csv file with double quotes.
Example:
SNO,NAME,ZIPCODE,RANK,CARE_OF
1,Robert,74538,12,RICHARD JOHNSON, P.C
2,Sam,07564,13,% R.S MIKE, V.K.S
3,Kim, Ed,12345,14,@90 KMS, %TK
Desired Output:
SNO,NAME,ZIPCODE,RANK,CARE_OF... (1 Reply)
Hi,
I have field in a file which would come with any special character, how do i check that field?
Eg: @123TYtaasa>>>/ 131dfetr_~2
In the above example, how do I add pattern for any special character on the keyboard.
Thanks (3 Replies)
Hi all,
I have two instance of jboss (jboss and jboss2). In a shell script that I am writing, I need to grep for each instance of jboss.
If i use ps -ef|grep 'jboss', it will also return the process for my second instance of jboss, which is jboss2. Can someone tell me how can i specify the... (1 Reply)
I have the following code. I want to remove the --sort=num/num/... and am
using grep to exclude it as shown below:
I have a bit of problem figuring out the use of - at the front
echo "--sort=4/5/6" | grep -ivE '-((sort|group)=+/+(/+)*)$'
Now suppose I want to remove --quiet
I can... (7 Replies)
Hi
I need to do a patten match between files .
I am new to shell scripting and have come up with this so far. It take 50 seconds to process files of 2mb size . I need to tune this code as file size will be around 50mb and need to save time.
Main issue is that I need to search the pattern from... (2 Replies)
I think what I'm trying to do is pretty straightforward but I just can't find a way to do it.
I'm trying to run a double pattern match in a three column file. If the first two columns match, I need to output the third.
So in the file
AAA BBB 1
BBC CCC 5
CCC DDD 7
DDD EEE 12
If the... (4 Replies)
Hi All,
I have list of files like below with name abcxyz.timestamp. I need a unix command to pick the latest file from the list of below files. Here in this case the lates file is abcxyz.20190304103200. I have used this unix command "ls abcxyz*|tail -1" but i heard that it is not the appropriate... (2 Replies)
Discussion started by: rakeshp
2 Replies
LEARN ABOUT DEBIAN
fox
FOX(1) General Commands Manual FOX(1)NAME
fox - ab-initio structure determination from diffraction data
SYNOPSIS
fox [options] [file.xml]
DESCRIPTION
The fox (Free Objects for Crystallography) program was made for the ab initio crystal structure solution from diffraction data. Its most
interesting features for ab initio structure determination are:
* versatile description of the crystal contents;
* automatic correction for special positions and shared atoms between polyhedra;
* the ability to use simultaneously multiple powder patterns;
* smart global optimization algorithms;
* a graphical interface with a 3D crystal structure view and live updates during the optimization process.
OPTIONS
This program my be executed with or without command line options or input file (file.xml). It follows the usual GNU command line syntax,
with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the fox wiki
http://objcryst.sourceforge.net/Fox/Manual
--help Show summary of options.
--loadfouriergrd map.grd
Load and display 'map.grd' fourier map with (first) crystal structure
--loadfourierdsn6 map.DN6
Load and display a DSN6 fourier map with (first) crystal structure
--nogui
Run without GUI, automatically launches optimization --nogui may be accompanied by the following options:
-n 10000
Run for 10000 trials at most (default: 1000000)
--nbrun 5
Do 5 runs, randomizing before each run (default: 1), use -1 to run indefinitely
-o out.xml
Output in 'out.xml'
--randomize
Randomize initial configuration
--silent
Produce (almost) no text output
--finalcost 0.15
Run optimization until cost < 0.15
--cif2pattern 1.5406 170 5000 .1
Simulate pattern for input crystal, wavelength=1.5406 up to 170o with 500 points anda peak width of 0.1o
EXAMPLES
Fox silicon.xml
Load file 'silicon.xml' and launch GUI.
Fox Cimetidine-powder.xml --nogui --randomize -n 1000000 -o best.xml
Load file 'ktartrate.xml', randomize, then make 1 optimization of 1 million trials, and save the best structure in 'best.xml'.
Fox Cimetidine-powder.xml --nogui --randomize -n 10000000 --nbrun 10 -o best.xml
Load file 'Cimetidine-powder.xml', then make 10 runs (starting from a random structure) of 10 million trials (each run saves one xml
file), and save the best structure in 'best.xml'.
Fox Cimetidine-powder.xml --nogui --silent --randomize -n 10000000 --nbrun 10 --finalcost 200000 -o best.xml
Load file 'Cimetidine-powder.xml', then make 10 silent runs of 10 million trials (each run saves one xml file), and save the best
structure in 'best.xml'. For each run, the optimization stops if the cost goes below 200000.
AUTHOR
fox was written by Vincent Favre-Nicolin <Vincent.Favre-Nicolin@cea.fr>.
This manual page was written by Carlo Segre <segre@debian.org>, for the Debian project (but may be used by others).
July 24, 2008 FOX(1)