Sponsored Content
Full Discussion: i am newer to unix platform
Top Forums UNIX for Dummies Questions & Answers i am newer to unix platform Post 302221184 by Annihilannic on Sunday 3rd of August 2008 10:05:56 PM
Old 08-03-2008
You could do something like this:

Code:
awk -F', *' '
        {
                for (i=1; i<=NF; i++) {
                        split($i,a," = ")
                        value[a[1]]=a[2]
                }
        }
        /Carrier PVN/ {
                print "tipo:    " value["tipo"]
                print "Idiomas: " value["Idiomas"]
                print "att:     " value["att"]
                # ...
        }
' inputfile

However it is very difficult to interpret the input because it is inconsistent, e.g. why is there no comma after "ind = 0"? Can you fix the format of the dumped data first?
 

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
DUMP_ACCT(8)						      System Manager's Manual						      DUMP_ACCT(8)

NAME
dump-acct - print an acct/pacct file in human-readable format SYNOPSIS
dump-acct [-r|--reverse] [-R|--raw] [-n|--num recs] [--byte-swap] [--format] [--ahz freq] [-h|--help] [files] DESCRIPTION
The dump-acct command transforms the output file from the accton format to the human-readable format: one record per line. Each record consists of severald fields which are separated by character "|" (the meaning of concreate field depends on the version of kernel package - with which the accton file was created). OPTIONS
The following options are supported: -r, --reverse Print the output in reverse order. -R, --raw The records will be printed without any parsing. -n, --num NUMRECS Display only the first NUMRECS number of records. --byteswap Swap the bytes (relative to your system's native byte order) in --raw output. --format Set output format with --raw option. --ahz FREQ Set the AHZ (platform dependent frequency in Hertz) to FREQ. -h, --help Print a help message and the default location of the process accounting file and exit. SEE ALSO
accton (8), lastcomm (1) Linux accounting system 2009 December 2 DUMP_ACCT(8)
All times are GMT -4. The time now is 08:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy