I have a variable which consists of a string like this:
001 aaabc 44 a bbb12
How do I extract each substring, delimited by the spaces, into new variables - one for each substring?
eg var1 will be 001, var2 will be aaabc, var3 will be 44, var4 will be a, etc?
I've come up with this:... (2 Replies)
hi,I am new to shell script,I have String,like this:
Number of rows exported: 5321
the numbe at end could changing,how can I extract this number and assign it to a variable,then use it later in script.
thanks. (19 Replies)
Hello,
I'm running calculations and I need to extract a specific number from a output file. So far I've only been able to GREP entire lines containing the string: '1 F=' . I would like to go a step further and extract just the number following '1 F='. The entire line looks like:
1 F=... (10 Replies)
Hi, guys. I have one question:
I need to search for a string in a file, and then extract another string from the file and assign it to a variable.
For example:
the contents of the file (group) is below:
...
ftp:x:23:
mail:x:34
...
testing:x:2001
sales:x:2002
development:x:2003
...... (6 Replies)
Hi,
I need to mass delete the following string(s) from my files
weight=100,
However the '100' is variable e.g
Current:
----------------
moretext=bar, weight=100, moreinfo=blah
extrastuff=hi, weight=9999, extrainfo=foo
Desired:
------------------
moretext=bar, moreinfo=blah... (2 Replies)
I have a file with
<suit:run date="Trump Tue 06/19/2012 11:41 AM EDT" machine="garg-ln" build="19921" level="beta" release="6.1.5" os="Linux">
Need to find word "build" then
extract build number, which is 19921 also
release number, which is 6.1.5 then
concatenate them to one variable as... (6 Replies)
Hi All,
i have file name like below
ABC_065224_123456_123456_your_130413_163005.txt
ABC_065224_123456_MAIN_20130413_163005.txt
ABC_065224_123456_123456_MAIN_130413_163005.txt
ABC_065224_123456_123456_434567_MAIN_130413_163005.txt
i need to find out the number of characters in the filed... (6 Replies)
Hi,
I'm doing a script to list all scripts called by a "master" script.
But I have an issue as there is some variables in the name of the called scripts.
Example:
% cat master_script.sh
ENVIR=PROD
VERSION=1.2
/users/maturix/$ENVIR/program_$VERSION.shI would like my script displays a kind... (7 Replies)
Discussion started by: maturix
7 Replies
LEARN ABOUT DEBIAN
modelicac
modelicac(1) General Commands Manual modelicac(1)NAME
modelicac - modelicac is a compiler for a subset of the Modelica language including parts of the 'equation' subset that can express rela-
tions between Real variable.
SYNOPSIS
modelicac [-c] [-o <outputfile>] <inputfile> [ -L directory | -hpath directory | -keep-all-variables | -jac | -no-parameter-removal | -no-
simplifs | -trace filename | -xml ] This manual page documents briefly the modelicac commands. Note that modelicac is only available on
the platform which are supported by ocamlopt (ie amd64 hurd-i386 i386 powerpc sparc)
OPTIONS
A complete list of options is included below.
-c Compile only, do not instantiate. Modelicac produces a "*.moc" file when invoked with that option.
-o outputfile
Set output file name to <outputfile> (this option also works with -c option but is somewhat useless because of the class name
restrictions given above).
-L directory
Add <directory> to the list of directories to be searched when producing a C file (no effect when used with -c).
-hpath directory
Specify a path to be added to #include directives in the generated C code.
-keep-all-variables
Do not remove any variable from the initial system.
-jac Generate analytic jacobian matrix code.
-no-parameter-removal
Do not remove any parameter
-no-simplifs
Same as -keep-all-variables -no-parameter-removal
-trace filename
Generate tracing information for external function calls into <filename>
-xml Generate an XML version of the model instead of target code
AUTHOR
Modelicac was written by TNI-Valiosys and Imagineby.
This manual page was written by Sylvestre Ledru <sylvestre@debian.org>.
November 18, 2008 modelicac(1)