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
PERF-MEM(1)							    perf Manual 						       PERF-MEM(1)

NAME
perf-mem - Profile memory accesses SYNOPSIS
perf mem [<options>] (record [<command>] | report) DESCRIPTION
"perf mem -t <TYPE> record" runs a command and gathers memory operation data from it, into perf.data. Perf record options are accepted and are passed through. "perf mem -t <TYPE> report" displays the result. It invokes perf report with the right set of options to display a memory access profile. OPTIONS
<command>... Any command you can specify in a shell. -t, --type= Select the memory operation type: load or store (default: load) -D, --dump-raw-samples= Dump the raw decoded samples on the screen in a format that is easy to parse with one sample per line. -x, --field-separator Specify the field separator used when dump raw samples (-D option). By default, The separator is the space character. -C, --cpu-list Restrict dump of raw samples to those provided via this option. Note that the same option can be passed in record mode. It will be interpreted the same way as perf record. SEE ALSO
perf-record(1), perf-report(1) perf 06/30/2014 PERF-MEM(1)
All times are GMT -4. The time now is 08:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy