10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
Although I have found similar questions, I could not find advice that could help with our problem.
The issue:
We have a few thousands text files (books).
Each book has many chapters. Each chapter is identified by a cite-key. We need
to split each of those book files by... (4 Replies)
Discussion started by: samask
4 Replies
2. Shell Programming and Scripting
I'm running a matlab code within a shell script. This is how I do it,
matlab -nodesktop -nosplash -nojvm -r "my_program;quit"
This works fine. My matlab code prints out a single number, say "ans = 10" for example. I want to assign this to a variable in the shell script.
I tried doing this... (18 Replies)
Discussion started by: lost.identity
18 Replies
3. Shell Programming and Scripting
Hello,
I need to read a variable value from script.
Below is the scenario
I am reading a value from an external file say a.txt
a.txt:
Jan
Feb
Mar
I need the corresponding value of the months in in numerics such as Jan -->1,
Feb-->2 etc.
I have this mapping in another file... (1 Reply)
Discussion started by: aixjadoo
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have a situation where I need to read a variable from another file. But the problem is that the variable in the other file is starting with $.
E.g.
file1:
$var1=out
temp_ss.sh:
. file1
echo "Print : $var1"
It works fine if the file1 is having var1=out (note that it is... (6 Replies)
Discussion started by: shash
6 Replies
5. Shell Programming and Scripting
Hi,
I am doing :
while read line
do
printf "%s\n" ${line}
done <datafile.txt
but I am not getting each single line from the data file assigned to the variable line (but only tokens/fields at a time). I also tried while IFS= read -r lineI want the whole line assigned or read into the... (2 Replies)
Discussion started by: shri_nath
2 Replies
6. UNIX for Dummies Questions & Answers
Im trying to set a filename to a variable and then read the file in using the variable but im getting a syntax error. any ideas?
#!/bin/bash
function scanFile()
{
while read $1
do
echo $filename
done
}
file1=report.log
scanFile() $file1 (3 Replies)
Discussion started by: magnia
3 Replies
7. Shell Programming and Scripting
Hi,
Here is the output of lpstat. I would like to read value of Queue which is(abxxxxb1)and status that is DOWN in first line. i dont care what is in second line. any one can help me.thanks
Queue Dev Status Job Files User PP % Blks Cp Rnk
------- ----- ---------... (5 Replies)
Discussion started by: sagii
5 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I grep for a pattern in a list of files.
"grep -i -l $pattern *.datx*"
it may give me n number of files.
say for eg, it gives me 2 files.
lock_eicu_20071228_00000000.dat_20071228_05343100
lock_eicu_20080501_00000000.dat_20080501_05343900
out of these 2 files I need to get the... (7 Replies)
Discussion started by: prsshini
7 Replies
9. Shell Programming and Scripting
Hi all,
I would like to send the output of a line in a ksh script to a file, but I need to name the file using a predefined variable:
ls -l > $MYVAR.arc
But what is the correct syntax for achieving this? I can't seem to find the correct syntax for giving the file an extension.
Any... (8 Replies)
Discussion started by: mandriver
8 Replies
10. Shell Programming and Scripting
Hi
I am trouble parsing through a file with spaces in the filename. I need to grab "supportIDPS/SCM/windows_install/file groups/dds.fgl" and then do a md5sum on it. I am using sh.
Any help is appreciated.
Here is an example of the input file:
7eedbc9f7902bf4c1878d9e571addf9a ... (4 Replies)
Discussion started by: jekl5
4 Replies
GPIV_VORTY(1) General Commands Manual GPIV_VORTY(1)
NAME
gpiv_vorty - Calculates the differential quantities vorticity, shear strain and normal strain from PIV data.
SYNOPSIS
gpiv_vorty [-d N] [-h | --help] [-p | --print] [-g | --g] [--no_g ] [-v | --version] [filename] < stdin > stdout
DESCRIPTION
gpiv_vorty calculates the differential quantities like vorticity, shear strain and normal strain from PIV data. You can choose from several
differential schemes: central differentiation, least squares, Richardson extrapolation and circulation method. Circulation method only
allows one to calculate vorticity, but no strain. The output can be generated as ASCII data containing four columns or as GNUPlot Data for-
mat that allows one to view/print the data as contour plots.
The configuration parameters (containing the POST key) may be overruled by the command line options, as explained below.
Options
-d N Differential type to be used: central difference (N=0), least squares (N=1), Richardson interpolation (N=2), circulation method
(N=3)
-h | --help
On-line help
-p | --print
Print parameters, command line options and eventually used input and output filenames to stdout. The output is identic of file-
name.par, in case filename is used.
-g Show contour plot of the output with gnuplot.
--no_g Suppresses to show contour plot of the output with gnuplot.
-v | --version
Print version information on standard output, then exit successfully.
filename
Input PIV data file. Overrides stdin and stdout. The output will be written to filename.vor. Parameters are stored in filename.par
and may be used for future use by including them in ./gpivrc.
SEE ALSO
gpivtools
AUTHOR
Gerber Van der Graaf
8 November 2006 GPIV_VORTY(1)