10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have a file as :-
ABC
DEF
GHI
JKL
<BlankLine>
MNO
PQR
STU
VWX
<BlankLine>
YZA
I need it as below:-
ABCDEFGHIJKL;
MNOPQRSTUVWX; (3 Replies)
Discussion started by: jassi10781
3 Replies
2. Shell Programming and Scripting
Hi All,
Am trying to write wrapper shell/bash script on a utility tool for which i need to pass 2 files as arugment to execute utility tool.
Wraper script am trying is to do with above metion 2 files.
utility tool accepts :
a. userinfo file : which contains username
b. item file : which... (2 Replies)
Discussion started by: Optimus81
2 Replies
3. UNIX for Dummies Questions & Answers
Hello All,
i am a newbie and need some help when reading a csv file in a bourne shell script. I want to read 10 lines, then wait for a minute and then do a reading of another 10 lines and so on in the same way. I want to do this till the end of file.
Any inputs are appreciated
... (3 Replies)
Discussion started by: victor.s
3 Replies
4. Shell Programming and Scripting
Hi,
I need to match lines after a pattern, upto the first blank line.
Searched in web and some forums but coulnt find the answer.
where <restart_step> =
10 -- Execute query
20 -- Write the contents to the Oracle table
30 -- Writing Contents to OUTPUT... (7 Replies)
Discussion started by: justchill
7 Replies
5. Shell Programming and Scripting
So, I want to read line-by-line a text file with unknown number of files....
So:
a=1
b=1
while ; do
b=`sed -n '$ap' test`
a=`expr $a + 1`
$here do something with b etc
done
the problem is that sed does not seem to recognise the $a, even when trying
sed -n ' $a p'
So, I cannot read... (3 Replies)
Discussion started by: hakermania
3 Replies
6. Shell Programming and Scripting
So i have a file which contains paths to JPG images separated by a space.
I have to separate them each path to another file. So, I have to search all strings that start from /home/ and ends with .jpg or .png
Then write each one to another file...
Can you please help me on doing this???:cool: (11 Replies)
Discussion started by: hakermania
11 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have reached at a specified offset from the start of file. My requirement is that I want to read only those lines, which have the string READ / ALTER / UPDATE. As soon as, none of these literals are found in the subsequent line, I want to stop reading. Is there any feature of grep which... (1 Reply)
Discussion started by: saurabhsinha23
1 Replies
8. UNIX for Dummies Questions & Answers
Hi ,
I want to read a file starting with "*" up to till it encounters a blank line and to redirect this output to a different file.Plz suggest how to write a script for this.
e.g:-
* PK Sent Email (11.23)
CALYPSO 1243215 9116457 NEW TRAD FAILED Nov 23 2007 9:34AM OASYS: DPS: SINGCORP invalid... (1 Reply)
Discussion started by: adityam
1 Replies
9. Shell Programming and Scripting
Hi ,
I want to read a file starting with "*" up to till it encounters a blank line and to redirect this output to a different file.Plz suggest how to write a script for this.
e.g:-
* PK Sent Email (11.23)
CALYPSO 1243215 9116457 NEW TRAD FAILED Nov 23 2007 9:34AM OASYS: DPS: SINGCORP invalid... (1 Reply)
Discussion started by: adityam
1 Replies
10. Shell Programming and Scripting
In my script i am writing to a counter file the no of processes i had started,
that is each time i start a process, i will increment the content of counter file and also when the process ends i will decrement the content of the file.
after this i do some other activities, by now i want to... (1 Reply)
Discussion started by: senthilk615
1 Replies
MWRAP(1) MWRAP manpage MWRAP(1)
NAME
mwrap - Octave/MATLAB mex generator
SYNOPSIS
mwrap [-mex outputmex] [-m output.m] [-c outputmex.c] [-mb] [-list] [-catch] [-c99complex] [-cppcomplex] infile1 infile2 ...
DESCRIPTION
mwrap is an interface generation system in the spirit of SWIG or matwrap. From a set of augmented Octave/MATLAB script files, mwrap will
generate a MEX gateway to desired C/C++ function calls and .m function files to access that gateway. The details of converting to and from
Octave's or MATLAB's data structures, and of allocating and freeing temporary storage, are hidden from the user.
OPTIONS
-mex specifies the name of the MEX function that the generated functions will call. This name will generally be the same as the prefix
for the C/C++ output file name.
-m specifies the name of the Octave/MATLAB script to be generated.
-c specifies the name of the C MEX file to be generated. The MEX file may contain stubs corresponding to several different generated
files.
-mb redirect Octave/MATLAB function output to files named in the input. In this mode, the processor will change Octave/MATLAB function
output files whenever it encounters a line beginning with @. If @ occurs alone on a line, the output will be turned off; if the
line begins with @function, the line will be treated as the first line of a function, and the m-file name will be deduced from the
function name; and otherwise, the characters after @ (up to the next set of white space) will be treated as a filename, and mwrap
will try to write to that file.
-list print to the standard output the names of all files that would be generated from redirect output by the -mb flag.
-catch surround library calls in try/catch blocks in order to intercept C++ exceptions.
-c99complex
use the C99 complex floating point types as the default dcomplex and fcomplex types.
-cppcomplex
use the C++ complex floating point types as the default dcomplex and fcomplex types.
mwrap 2012 MWRAP(1)