Sponsored Content
Top Forums Programming AWK processing of a three-column file Post 302591925 by drl on Saturday 21st of January 2012 04:01:09 PM
Old 01-21-2012
Hi.

Are you sure that you have unformatted data? What do you think that means? ... cheers, drl
This User Gave Thanks to drl For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

processing a file with sed and awk

Hello, I have what is probably a simple task in text manipulation, but I just can't wrap my brain around it. I have a text file that looks something like the following. Note that some have middle initials in the first field and some don't. john.r.smith:john.smith@yahoo.com... (4 Replies)
Discussion started by: manouche
4 Replies

2. Shell Programming and Scripting

AWK processing -numbers to another column

Hi Guys, I'm trying to clean up my home logger file and can't seem to work this out. Here is my data: 10-19-2009 08:39 00.2 00.0 00.7 01.1 49.1 0.0 11.9 270.1 -49.1 220.9 10-19-2009 08:40 00.2 00.0 00.7 00.7 49.1 0.0 171.9 171.9 49.1 220.9 10-19-2009 08:41 00.1 00.0 00.7 00.8 24.5 0.0... (2 Replies)
Discussion started by: BeJay
2 Replies

3. Shell Programming and Scripting

awk help in processing file.

I am trying to process file which has following data #23456789012345 ACNASPSA13N0N0 ACNAPCPA05N0N0 ACNAFATS11N0N0 I want to take out each line from the file and what to put in the file by name which if part of the line starting from offset 10 to 15. It means I want to create three file... (3 Replies)
Discussion started by: ekb
3 Replies

4. Shell Programming and Scripting

Help with File Processing (AWK)

Input File: 1234, 2345,abc 1,24141,gw 222,rff,sds 2232145,sdsd,121 Output file to be generated: 000001234,2345,abc 000000001,24141,gw 000000222,rff,sds 002232145,sdsd,121 i.e; the first column is padded to get 9 digits. I tried with following: (1 Reply)
Discussion started by: karumudi7
1 Replies

5. Shell Programming and Scripting

Help with File Processing (AWK)

Input File: 1234, 2345,abc 1,24141,gw 222,rff,sds 2232145,sdsd,121 Output file to be generated: 000001234,2345,abc 000000001,24141,gw 000000222,rff,sds 002232145,sdsd,121 i.e; the first column is padded to get 9 digits. I tried with following: (3 Replies)
Discussion started by: karumudi7
3 Replies

6. Shell Programming and Scripting

Help with File processing - Extracting the column

I have a line from table space report: 5 135_TT ms Normal 1774336.0 1774208.0 761152.0 1013056.0 57.1% Now I have to get 1013056.0 as o/p. For this I tried cut -f32 -d" " previously it worked now it is showing empty space. Suggest me the best code for this which... (1 Reply)
Discussion started by: karumudi7
1 Replies

7. Shell Programming and Scripting

Awk: Need help replacing a specific column in a file by part of a column in another file

Hi, I have two input files as File1 : ABC:client1:project1 XYZ:client2-aa:project2 DEF:client4:proj File2 : client1:W-170:xx client2-aa:WT-04:yy client4:L-005A:zz Also, array of valid values can be hardcoded like Output : ABC:W:project1 XYZ:WT:project2 (1 Reply)
Discussion started by: aa2601
1 Replies

8. Programming

awk processing / Shell Script Processing to remove columns text file

Hello, I extracted a list of files in a directory with the command ls . However this is not my computer, so the ls functionality has been revamped so that it gives the filesizes in front like this : This is the output of ls command : I stored the output in a file filelist 1.1M... (5 Replies)
Discussion started by: ajayram
5 Replies

9. Shell Programming and Scripting

Help with file processing using awk

hello All, I'm new to AWK programming and learned myself few things to process a file and deal with duplicate lines, but I got into a scenario which makes me clueless to handle. Here is the scenario.. Input file: user role ----- ---- AAA add AAA delete BBB delete CCC delete DDD ... (10 Replies)
Discussion started by: julearn
10 Replies

10. Shell Programming and Scripting

Processing a formatted file with awk

Hi - I want to interrogate information about my poker hands, sessions are all recorded in a text file in a particular format. Each hand starts with the string <PokerStars> followed by a unique hand reference and other data like date/time. There is then all the information about each hand. My first... (5 Replies)
Discussion started by: rbeech23
5 Replies
hier(7) 						 Miscellaneous Information Manual						   hier(7)

Name
       hier - file system hierarchy

Description
       The following is a brief description of the root file system.  The major directory hierarchy and representative files are listed.

       Symbolic links can be included in the files to provide backward compatibility. To display the links, type:
       % ls -l

       See the Guide to Disk Maintenance for more detailed information.

       /       Directory  for  root file system. This file system is separated into nonsharable data, (root (/)) and sharable data, (/usr).  These
	       two file systems are each divided into the following types: static data, variable data, and executable data.

       /bin    Directory for the single user executable data files.

       /bin/init
	       Parent of all processes,

       /bin/mount
	       Mount program,

       /dev    Directory for devices.
		  MAKEDEV Shell script to create special files
		  MAKEDEV.local
			  Site-specific part of MAKEDEV
		  console Main console,
		  rz	  SCSI disks,
		  rrz*	  Raw SCSI disks,
		  rmt*	  Tapes
		  mrmt*   Tapes
		  tty*	  Terminals,
		       .
		       .
		       .

       /etc    Directory for the machine-specific static data files and shell scripts for booting.
		  crontab   System clock daemon table,
		  disktab   Disk characteristics and partition tables,
		  fstab     File system configuration table,
		  group     Group file,
		  hosts     Host name-to-network address mapping file,
		  motd	    Message-of-the-day file,
		  networks  Network name-to-network number mapping file,
		  passwd    Password file,
		  protocols Name-to-number mapping file,
		  rc	    Shell script to bring the system to multiuser mode
		  rc.local  Site-dependent portion of rc
		  remote    Names and description of remote hosts for and
		  services  Network services definition file,
		  termcap   Description of terminal capabilities,
		  ttys	    Properties of terminals,
		       .
		       .
		       .

       /lib    Symbolic link to

       /lost+found
	       Directory for connecting detached files for

       /sys    Symbolic link, normally to

       /tmp    Directory for temporary files (see also
		  e*	 Used by
		  ctm*	 Used by
		       .
		       .
		       .

       /usr    General purpose directory, on which the file system is normally mounted (see description that follows).

       /var    Directory for variable length files, such as spool, administrative, and temporary files. These files can also be located in See the
	       Guide to Disk Maintenance.

       /vmunix Kernel image

       The  directory contains the sharable data. The following is a brief description of the file system.  The major directory hierarchy and rep-
       resentative files are listed.

       /usr	 Root directory for file system.

       /usr/adm  Directory for administrative information, which is now a symbolic link to
		    crash   Directory for crash dumps
		    vmcore.?,vmunix.?	Crash dump files
		    lpacct  Line printer accounting,
		    tracct  Phototypesetter accounting,
		    wtmp    Login history,
			 .
			 .
			 .

       /usr/bin  Directory for the shared executable data files, including utility programs and Shell scripts.
		    as	 assembler
		    cc	 C compiler executive (see also and
		    csh  C shell
			 .
			 .
			 .

       /usr/dict Directory for word lists.
		    spellhist History file,
		    words     Word list,
			 .
			 .
			 .

       /usr/doc  Directories containing files for the Vol.2 documentation.
		    as	 Assembler manual
		    c	 C manual
			 .
			 .
			 .

       /usr/etc  Directory for utility programs and shell scripts.

       /usr/etc/cron
		 Clock daemon,

       /usr/etc/dump
		 Dump program,

       /usr/examples
		 A directory where components of the base system and Digital's separately licensed products can locate code examples, scripts, and
		 demos for customers to use.  A typical use is to complement printed documentation.

       /usr/games
		 Directory for games.
		    hangman   Hangman game
		    lib       Library directory for games
			 .
			 .
			 .

       /usr/etc/getty
		 Part of login,

       /usr/include
		 Directory for standard #include files.
		    a.out.h  Object file layout,
		    math.h
		    stdio.h  Standard I/O,
		    sys      Symbolic link to (system generation #include files)
			 .
			 .
			 .

       /usr/lib  Directory for the shared static data files, such as object libraries.
		    atrun   System scheduler,
		    cpp     C preprocessor
		    libc.a  System calls and standard I/O (2,3,3S)
		    font    Directory for fonts
		    lint    Directory for utility files for
		    tmac    Directory for macros
		    units   Data file of conversion tables for
		    uucp    Directory for programs and data
			 .
			 .
			 .

       /usr/man  Directory for unformatted and preformatted reference (manual) pages.
		    cat1    Section 1 (preformatted)
		    cat2    Section 2 (preformatted)
		    cat3    Section 3 (preformatted)
			 .
			 .
			 .
		    man1    Section 1 (unformatted)
		    man2    Section 2 (unformatted)
		    man3    Section 3 (unformatted)
			 .
			 .
			 .

       /usr/mdec Directory for ULTRIX boot files.

       /usr/msgs Directory for messages,

       /usr/new  Directory for binaries of new versions of programs.

       /usr/preserve
		 Directory for editor files preserved after crashes or hangups.

       /usr/skel Directory for sample user startup files.
		    .cshrc   Startup file for
		    .login   Login startup file for
		    .mailrc  Startup file for
		    .profile Startup file for
		    .project Lists information used by

       /usr/spool
		 Directory for delayed execution files, which is now a symbolic link to
		    at	 Directory used by
		    lpd  Directory used by
			    lock Present when line printer is active
			    cf*  Copy of file to be printed, if necessary
			    df*  Daemon control file,
			    tf*  Transient control file (exists while is working)
		    mail  Mailboxes for
			    name	Mail file for user name
			    name.lock	Lock file (exists while name is receiving mail)
		    uucp  Work files and staging area for
			    LOGFILE	Summary log

       /usr/src  Generic sources.
		    usr.bin User sources
			      troff and sources
			      term  Directory of description files for new printers

       /usr/sys  Directory for system files.
		    b.mips    BINARY for MIPS
		    b.vax     BINARY for VAX
		    fs	      Filesystem SRC
		    net       Netword SRC
		    mips      MIPS-specific SRC
		    vax       VAX-specific SRC
		    data      System data files
		    conf/{mips,vax}
			      Configuration files
		    h	      #include files
		    SAS       Standalone system
		    sys       Machine independent SRC

       /usr/tmp  Symbolic link to

See Also
       apropos(1), find(1), finger(1), grep(1), ls(1), whatis(1), whereis(1), which(1), ncheck(8)
       Guide to Disk Maintenance

								       RISC								   hier(7)
All times are GMT -4. The time now is 04:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy