Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Listing out three fields of data Post 302144568 by damion on Thursday 8th of November 2007 07:19:38 PM
Old 11-08-2007
Quote:
Originally Posted by damion
How would I find three different fields in a data file such as first name, last name, credit card number in a particular file?

Thanks in advance for your help
Could someone please give me an example of the string of code I would use to obtain this data? I have no clue how to use AWK. I have been reading but have not found my answer yet.
 

10 More Discussions You Might Find Interesting

1. Solaris

Identifying new fields of data

i have hundreds of lines of formatted data with 10 different fields per line. the data is refreshed every few minutes and some fields in some lines may reflect new data. i'm looking for a sample of code that help me to identify those new fields so that i can write them to a file to indicate that... (0 Replies)
Discussion started by: davels
0 Replies

2. Shell Programming and Scripting

How to change Raw data to Coloumn data fields

Dear All, I have some data file.see below. --------------ALARM CLEARING FROM SubNetwork=ONRM_RootMo,SubNetwork=AXE,ManagedElement=CGSN-------------- Alarm Record ID: 25196304 Event Time: 2006-08-28 13:41:35 Event Type: ... (1 Reply)
Discussion started by: Nayanajith
1 Replies

3. UNIX for Dummies Questions & Answers

Remove Data from Fields

I would like some sugestions on how to solve the following problem with removing selected data from fields. Each day I receive a file containing 22,000 records that I use a combination of awk and the cut command to remove unwanted fields. This is a work in process as I learn more about awk, sed... (4 Replies)
Discussion started by: greengrass
4 Replies

4. UNIX for Dummies Questions & Answers

Directorie listing in Human form for data sizes

I have seen it done at my job before, there is a command that will make a notepad and show the directorie path, subfolders, and size of the subfolders? But i dont want it to go lower than 2 levels for example: folder_01 10 GB subfolder_02 10 GB subfolder_03 10 GB... (4 Replies)
Discussion started by: JUSSAN007
4 Replies

5. Shell Programming and Scripting

parsing data file picking out certain fields

I have a file that is large and is broken up by groups of data. I want to take certain fields and display them different to make it easier to read. Given input file below: 2008 fl01 LAC 2589 polk doal xx 2008q1 mx sect 25698541 Sales 08 Dept group lead1 ... (8 Replies)
Discussion started by: timj123
8 Replies

6. Shell Programming and Scripting

Match data based on two fields, and append to a line

I need to write a program to do something like a 'vlookup' in excel. I want to match data from file2 based on two fields (where both match) in file1, and for matching lines, add the data from two of the fields from file2 to file1. If anyone knows something in perl or awk that can do this, I'd be... (20 Replies)
Discussion started by: jamessmith01
20 Replies

7. Shell Programming and Scripting

Retriving the first line of data from the listing

Hi All, I have a problem of retrieving the first line of data from the listing i got back from this command : ls -l * | awk '{print $9}' | awk -F. '{print $3}' | sort -g the files names are in the folder are like month.dat.201010210400 day.dat.201010210401 year.dat.201010210402 ... (2 Replies)
Discussion started by: chipmuns
2 Replies

8. UNIX for Dummies Questions & Answers

[Solved] How to remove listing of current user cmd from ps -ef listing?

Hi All, Could you please help to resolve my following issues: Problem Description: Suppose my user name is "MI90". i.e. $USER = MI90 when i run below command, i get all the processes running on the system containing name MQ. ps -ef | grep MQ But sometimes it lists... (8 Replies)
Discussion started by: KDMishra
8 Replies

9. UNIX for Dummies Questions & Answers

Join command: how to keep all fields in one data

Dear all, I 'd like to ask a question. I have two datasets: a.txt (only has one filed, call 'SNP'), b.txt( has thousands of fields, 1st field call 'SNP'). a.txt: rs9527 rs318567 rs12376 ... b.txt: rs167893 1 2 0 2 1 2 ... rs318567 2 0 2 1 2 0 ... rs12376 0 2 0 2 1 2 ... I... (2 Replies)
Discussion started by: forevertl
2 Replies

10. Shell Programming and Scripting

Listing contents of fields

I am often given log files at work in .csv format to work with, normally extracting various fields. I then have to figure out the number of each field so that I can extract that field with cut or awk. Normally I just manually count the fields, based on the field separator. I would like to be... (3 Replies)
Discussion started by: stumpyuk99
3 Replies
KVKCARD(1)																KVKCARD(1)

NAME
kvkcard - a commandline tool to read information from a German medical card SYNOPSIS
kvkcard read | daemon | rdvd | rdpd [ [ -v | --verbous ] [ -fFILE | --filename=FILE ] [ -cCARDID | --cardid=CARDID ] [ -b | --beep ] [ -d | --dosmode ] [ -pPROGRAM | --program=PROGRAM ] [ -aARGUMENTS | --args=ARGUMENTS ] [ -h | --help ] ] DESCRIPTION
kvkcard is a commandline tool to read information from a German medical card (KVK or eGK). ARGUMENTS
read Read data from a German medical card. daemon Wait for insertion of a German medical card and run a program on it. rdvd Dump RDVD data structure of a card. rdpd Dump RDPD data structure of a card. -v | --verbous Every occurrence of this option increases the verbosity. -f FILE | --filename=FILE File to write to. If omitted stdout will be used. -c CARDID | --cardid=CARDID Set the ID of the card to read. -b | --beep Beep after reading a card. -d | --dosmode Output data in DOS mode. -p PROGRAM | --program=PROGRAM Program to call on cards found. -a ARGUMENTS | --args=ARGUMENTS Arguments for the program to be called -h | --help Shows this help. FILES
/etc/chipcard/ The system-wide configuration files. /var/log/chipcard/ The default log files. SEE ALSO
http://www.libchipcard.de Homepage of libchipcard project. /usr/share/doc/libchipcard-tools/ Local documentation. REVISION
Manual for kvkcard 2009 March 19th KVKCARD(1)
All times are GMT -4. The time now is 06:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy