Hi guys,
I want to input some variables from a file.
I tried it with following script,
for i in 1 2 3 4
do
read varible1 varible2 < ddd.txt
echo $varible1 $varible2
done ... (1 Reply)
Hi guys,
I am new to AWK and unix scripting. Please see below my problem and let me know if anyone you can help.
I have 2 input files (example given below)
Input file 2 is a standard file (it will not change) and we have to get the name (second column after comma) from it and append it... (5 Replies)
Hi ,
I am trying to get an reference of a XML formatted data using XML::Simple::XMLin
and again trying to retrive the XML data as it was before using XML::Simple::XMLout.
But finding a deviation in the format can any pls help me out.
Input file sr.xml
<?xml version="1.0"... (0 Replies)
I need to know how the the string constant from Input File should be read and provide as input data for the script .
INPUT FILE
CONST VARIABLE
myname=/root/dir/syslog/myname1
myname=/root/dir/syslog/myname2
myname=/root/dir/syslog/myname3
urname=/root/dir/syslog/urname1... (6 Replies)
Here is the requirement, When I run the "run file KSH (sql)", it should substitute
'${pCW_Bgn_DT}' with 201120
and
'${pCW_End_DT}' with 201124
Input File
----------
$ cat prevwk.dat
201124 20110711
run file KSH (sql)
------------------
In this file, I want to use the variables... (1 Reply)
Hello,
I'm trying to figure out how best to approach this script, and I have very little experience, so I could use all the help I can get. :wall:
I regularly need to delete files from many directories.
A file with the same name may exist any number of times in different subdirectories.... (3 Replies)
Dear Friends,
I am looking for a shell script to merge input files into one file .. here is my idea:
1st paramter would be outfile file (all input files content)
read all input files and merge them to input param 1
ex: if I pass 6 file names to the script then 1st file name as output file... (4 Replies)
Just started learning Unix and received my first assignment recently. We haven't learned many commands and honestly, I'm stumped. I'd like to receive assistance/guidance/hints.
1. The problem statement, all variables and given/known data:
How do I write a shell script that takes in a file or... (4 Replies)
Hi All,
I have one query, I managed to run script with user inputs through command line or with 1 file.
But I need to read a txt file/xml file in which user can mention multiple sets of answers and script should run for each set till it reach the EOF.
Thanks in advance
for example, the file... (3 Replies)
I have a file that I'm trying to place into a variable.
I've tried the following:
DATE=`date +%Y%m%d`
filez=$(cat /tmp/Test_$DATE.txt)DATE=`date +%Y%m%d`
filez=$(</tmp/Test_$DATE.txt)DATE=`date +%Y%m%d`
filez=$(`cat /tmp/Test_$DATE.txt`)None of these lines allows the file to go into the... (3 Replies)
Discussion started by: newbie2010
3 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)