Sponsored Content
Full Discussion: i am newer to unix platform
Top Forums UNIX for Dummies Questions & Answers i am newer to unix platform Post 302220918 by junaid.nehvi on Saturday 2nd of August 2008 04:20:51 AM
Old 08-02-2008
i am newer to unix platform

i have to select particular fields from a multiple line record.
my record is in dump.txt file and looks like this
*******************
tipo = abonado simplex, Idiomas = dic1 - none, Operador = estandar
Serv. portadora admitido: modem
ind = 0 numero telefonico = 79260960, att = 0
Carrier Contratado: naz = INDEFINIDO - int = INDEFINIDO
Origen = SELENA
tin = 0, inv = 0, tas = 0, cid = 0, pol = dir, ans = no, np = nup164,
Clase de servicio = COSDTM
Nombre mascara prohibic. = BAJAESPE
mor = no, fut = SELENA, cwr = 0, pbd = 1, ttx = 0, pmg = 0, ssa = 1, ssr = 0
duf = 0, anc = 0, lin = 1, ufn = 0, ort = 1, atc = p0, inm = 0 sve = 0
usc = 0, nin = 0, ocp = 0, dbl = 4, cos = 0, imc = 0, tcl = 0 scp = none
icr = no , start = no , tst = no , osr = no,
mct = 0, urg = 0, msm = 0,
lbi = 0, csr = 0,ltp = 0, lpf = 0, cnu = no
oristr = 1, telistr = no
vad = no, nor = subs, oct = 1, cntx = no
Carrier PVN = habilitad
*******************
tipo = abonado simplex, Idiomas = dic1 - none, Operador = estandar
Serv. portadora admitido: modem
ind = 0 numero telefonico = 79260961, att = 1
Carrier Contratado: naz = INDEFINIDO - int = INDEFINIDO
Origen = SELENA
tin = 0, inv = 0, tas = 0, cid = 0, pol = dir, ans = no, np = nup164,
Clase de servicio = COSDTM
Nombre mascara prohibic. = dbc5
mor = no, fut = SELENA, cwr = 0, pbd = 1, ttx = 0, pmg = 0, ssa = 1, ssr = 0
duf = 0, anc = 0, lin = 1, ufn = 0, ort = 1, atc = p0, inm = 0 sve = 0
usc = 0, nin = 0, ocp = 0, dbl = 4, cos = 0, imc = 0, tcl = 0 scp = none
icr = no , start = no , tst = no , osr = no,
mct = 0, urg = 0, msm = 0,
lbi = 0, csr = 0,ltp = 0, lpf = 0, cnu = no
oristr = 1, telistr = no
vad = no, nor = subs, oct = 1, cntx = no
Carrier PVN = habilitad


record starts from feild "tipo" and ends at "Carrier PVN"
similarly for 2nd, 3rd,.... records.
the fields i want to select are
tipo,Idiomas,Operador,ind,numero telefonico ,att ,Origen ,tin ,np,duf,atc ,inm ,usc ,telistr ........

and the list cotinues
i want to know what commands i need to use
i want my output to contain values on the other side of "=" sign
like for field
tipo = abonado simplex,

my output should be
abonado simplex
 

10 More Discussions You Might Find Interesting

1. Programming

C++ on True Unix Platform

Hi all: I would like to get some details about development using C++ on TRUE Unix platform. Can anyone help me ?? Thanks, -Mandar (2 Replies)
Discussion started by: mandar3
2 Replies

2. UNIX for Dummies Questions & Answers

tar --newer = tar --newer-mtime ?

Hi, I have the following question : As far as I know unix doesn't store file creation dates. Would that imply the following? tar -cvzf backup.tar --newer is equal to: tar -cvzf backup.tar --newer-mtime ? (1 Reply)
Discussion started by: jamesbond
1 Replies

3. Programming

How to programm TTY devices under UNIX platform?

Dear Export, I want to begin an serial-communication application codes associated with TTY devices. But I don't know what key settings should be concerned after opening a TTY device file under UNIX plarform(SunOS 5.7)? Could you give me some adivce? Thanks! (8 Replies)
Discussion started by: WayneYang
8 Replies

4. UNIX for Advanced & Expert Users

Porting of Windows written unix scripts to unix platform

Can anybody help me in finding out a solution for the problem below? When we write .unix or .sh files in windows OS and port them to Unix platforms there is a character ^M inserted at the end of each line of the script file. During ftp porting I set the transfer mode as ASCII for the script... (7 Replies)
Discussion started by: tamilselvi
7 Replies

5. UNIX for Dummies Questions & Answers

Need help in choosing Unix Platform.

I'm a completely noob to Unix. I have previously managed quite well Windows OS's but never Unix. -My question is quite simple: I've been investigating what's the easiest and most complex Unix OS. However, it seems there are quite a couple of OS's from which to choose, like: -Darwin ... (3 Replies)
Discussion started by: justanoob
3 Replies

6. Programming

Platform type in Unix

Hi all, How does one get the platform type in UNIX (for e.g. sparc/i386)? I need an function call and not the command like uname -p. thanks! (24 Replies)
Discussion started by: slash_blog
24 Replies

7. UNIX for Dummies Questions & Answers

Most used unix platform as desktop.

Just wonder about this question everytime that how many of us use unix as desktop and prefers which unix platform as desktop. - nilesh (4 Replies)
Discussion started by: ynilesh
4 Replies

8. Programming

about unix platform

Hi can any body post example for socket tcpclient in c++ act like browser with HTTp 1.1 and send message for the server (2 Replies)
Discussion started by: Net Star
2 Replies

9. UNIX for Dummies Questions & Answers

Is unix os or platform?

hellow everyone, iam a new user to linux and i have question about unix os. unix is operating system or platform iam confused. i have read some article about unix but i haven't found the answer what iam searching for. so iam confused in this topic can anyone made it clear. Any types of... (8 Replies)
Discussion started by: paruhang
8 Replies

10. UNIX for Advanced & Expert Users

R plots in UNIX platform

How do you see plots produced in R under UNIX platform? Thanks! (2 Replies)
Discussion started by: johnkim0806
2 Replies
RLAM(1) 						      General Commands Manual							   RLAM(1)

NAME
rlam - laminate records from multiple files SYNOPSIS
rlam [ -tS ][ -u ][ -iaN | -ifN | -idN | -iiN | -iwN | -ibN ] input1 input2 .. DESCRIPTION
Rlam simply joins records (or lines) from multiple inputs, separating them with the given string (TAB by default). Different separators may be given for different files by specifying additional -t options in between each file name. Note that there is no space between this option and its argument. If none of the input files uses an ASCII separator, then no end-of-line character will be printed, either. An input is either a stream or a command. Commands are given in quotes, and begin with an exclamantion point ('!'). If the inputs do not have the same number of lines, then shorter files will stop contributing to the output as they run out. The -ia option may be used to specify ASCII input (the default), or the -if option may be used to indicated binary IEEE 32-bit floats on input. Similarly, the -id and -ii options may be used to indicate binary 64-bit doubles or integer words, respectively. The -iw option specifies 2-byte short words, and the -ib option specifies bytes. If a number is immediately follows any of these options, then it indi- cates that multiple such values are expected for each record. For example, -if3 indicates three floats per input record for the next named input. In the case of the -ia option, no number indicates one line per input record, and numbers greater than zero indicate that many characters exactly per record. For binary input formts, no number implies one value per record. For anything other than EOL-separated input, the default tab separator is reset to the empty string. A hyphen ('-') by itself can be used to indicate the standard input, and may appear multiple times. The -u option forces output after each record (i.e., one run through inputs). EXAMPLE
To join files output1 and output2, separated by a comma: rlam -t, output1 output2 To join a file with line numbers (starting at 0) and its reverse: cnt `wc -l < lam.c` | rlam - -t: lam.c -t '!tail -r lam.c' To join four data files, each having three doubles per record: rlam -id3 file1.dbl file2.dbl file3.dbl file4.dbl > combined.dbl AUTHOR
Greg Ward SEE ALSO
cnt(1), histo(1), neaten(1), rcalc(1), tabfunc(1), total(1) RADIANCE
7/8/97 RLAM(1)
All times are GMT -4. The time now is 11:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy