07-05-2012
10 More Discussions You Might Find Interesting
1. AIX
Hi everybody
I looking the put the result of a commane to a Variable
i explain
here is my command:
FJTS_UK:root:common@ukaix3:/> cat sortie | grep "^"| awk '{ print $1}'
15
FJTS_UK:root:common@ukaix3:/>
sortie is a texte file
I want to put the result of commande in a... (1 Reply)
Discussion started by: kykyboss
1 Replies
2. Shell Programming and Scripting
I have a file that contains the following lines
the brown quick fox
jumped over
the white laze dog
0123456789
I wanted to put the contents of this file into a variable so I used this code:
VAR_LIST=`cat $2`
where $2 is the file name passed as an argument to the script
If I... (3 Replies)
Discussion started by: Nomaad
3 Replies
3. Shell Programming and Scripting
Hi,
I have a fixed width file with record length 10.
I need to remove multiple newline characters present in each record.
EX:
af\n72/7\n
s\n3\nad\n
2\n\n33r\n
In the above file I want to remove new lines in red color(\n) but not (\n)
Please provide me a solution.
Thanks,
Sri (1 Reply)
Discussion started by: srilaxmi
1 Replies
4. Shell Programming and Scripting
Hi All,
I have a to read a file and put the result in one line. The i am reading from contain the data like below.
1 signifies the beging of the new line. (6 Replies)
Discussion started by: lottiem
6 Replies
5. Shell Programming and Scripting
OS : Linux 2.6.9-67 - Red Hat Enterprise Linux ES release 4
Looking for a script that reads the following log files that gets generated everynight between 2 - 5am
Master_App_20090717.log
Master_App1_20090717.log
Master_App2_20090717.log
Master_App3_20090717.log... (2 Replies)
Discussion started by: aavam
2 Replies
6. Shell Programming and Scripting
I want to remove first line from a file containing 10K + records and want to put that into a new file.
Tried sed '1d' filename>newfile
This is writing all the records into new file.
Can somebody help please? (4 Replies)
Discussion started by: gpaulose
4 Replies
7. Shell Programming and Scripting
Hi,
I have one file as follows and I need to read this file contents in an HTML format. And send html file to some mail ids using sendmail.
Communications Pvt Ltd
Report
AccountId Name Code IdBill Balance ... (3 Replies)
Discussion started by: Kattoor
3 Replies
8. Shell Programming and Scripting
For example, I have a simple text file
note:
this a note
a simple note
a very very simple notewhen I use this command,
temp=$(cat "note.txt")then I echo temp, the result is in one line.
echo $temp
note: this a note a simple note a very very simple noteMy variable doesn't have newline.
How... (7 Replies)
Discussion started by: 14th
7 Replies
9. Shell Programming and Scripting
Hi,
I have a file called "readfile" it contains below parameters
#cat readfile
word=/abc=225,/abc/cba=150 three=12 four=45 five=/xyz/yza
likewise multiple line.
From the above file, I have to read "word"
output should be like,
/abc
/abc/cba
these values need to be put in... (3 Replies)
Discussion started by: munna_dude
3 Replies
10. Shell Programming and Scripting
i am having some bash script which must use first sentence of the file. For example i have file which content is:
test 213
So I must use word test into my bash script, and put it into variable.
I am using a one variable named value
value=$(</home/rusher/test.txt)
so instead using test.txt... (1 Reply)
Discussion started by: tomislav91
1 Replies
LEARN ABOUT REDHAT
mkoctfile
MKOCTFILE(1) General Commands Manual MKOCTFILE(1)
NAME
mkoctfile - Compile dynamic-load modules for GNU Octave
SYNOPSIS
mkoctfile [-IDIR] [-DDEF] [-lLIB] [-LDIR] [-M|--depend] [-c] [-o FILE|--output FILE] [-p VAR|--print VAR] [-s|--strip] [-v|--ver-
bose] [-h|-?|--help] file ...
DESCRIPTION
mkoctfile is used to compile source C, C++ or Fortran source code in dynamically loadble file for octave(1).
OPTIONS
mkoctfile accepts the following options:
-IDIR Add include directory DIR to compile commands.
-DDEF Add definition DEF to compiler call.
-lLIB Add library LIB to link command.
-LDIR Add library directory DIR to link command.
-M|--depend
Generate dependency files (.d) for C and C++ source files.
-c Compile but do not link.
-o FILE|--output FILE
Output file name; default extension is .oct.
-p VAR|--print VAR
Print configuration variable VAR. Recognized variables are:
CPPFLAGS CPICFLAG
INCFLAGS CXX
F2C CXXFLAGS
F2CFLAGS CXXPICFLAG
F77 XTRA_CFLAGS
FFLAGS XTRA_CXXFLAGS
FPICFLAG SHLEXT
CC SH_LD
CFLAGS SH_LDFLAGS
-s|--strip
Strip the output file.
-v|--verbose
Echo commands as they are executed.
file Compile or linke file. Recognised file types are
.c C source
.cc C++ source
.C C++ source
.cpp C++ source
.f Fortran source
.F Fortran source
.o object file
.SH SEE ALSO
.BR octave (1).
AUTHOR
John W. Eaton <jwe@bevo.che.wisc.edu>
This manual page was contributed by Dirk Eddelbuettel <edd@debian.org> for the Debian GNU/Linux distribution but may be used by others.
GNU Octave 1 November 2002 MKOCTFILE(1)