Sponsored Content
Top Forums Shell Programming and Scripting Awk - Working with fixed length files Post 302197797 by ambroze on Wednesday 21st of May 2008 05:35:07 PM
Old 05-21-2008
This does seem to work and thanks! One small issue. I moved this over to another box that is AIX and it bombs out.. Gets this:

awk: 0602-553 Function strftime is not defined.
The source line number is 4.

It doesn't like the strftime function.

Any thoughts??
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

creating a fixed length output from a variable length input

Is there a command that sets a variable length? I have a input of a variable length field but my output for that field needs to be set to 32 char. Is there such a command? I am on a sun box running ksh Thanks (2 Replies)
Discussion started by: r1500
2 Replies

2. Shell Programming and Scripting

sort on fixed length files

Hi How to sort a fixed length file on a given char range and just display the duplicates. I did search for man sort to find any option but could find any.,something similar to cut -c 1-5,25-35. I have alternate way of doing this by using combination of cut,awk. but this creates extra temp... (6 Replies)
Discussion started by: sach_in
6 Replies

3. Shell Programming and Scripting

fixed length fields in awk

I am trying to display df -h command out in proper format, how can I display each field of each record in a fixed length. (2 Replies)
Discussion started by: roopla
2 Replies

4. Shell Programming and Scripting

Awk with fixed length files

Hi Unix Champs, I want to awk on a fixed length file. Instead if the file was a delimited file, then I could have used -F and then could have easily done manipulation on the fields. How do i do the same in case of fixed length file? Thanks in Advance. Regards. (7 Replies)
Discussion started by: c2b2
7 Replies

5. Shell Programming and Scripting

Join two fixed length Files in Unix

Hi, Can we join two fixed length files in Unix using JOIN command? Is there any other command to accomplish the same? Thanks, G.Harikrishnan (6 Replies)
Discussion started by: gharikrishnan
6 Replies

6. Shell Programming and Scripting

awk to extract incorrect fixed length records

I have a number of unix text files containing fixed-length records (normal unix linefeed terminator) where I need to find odd records which are an incorrect length. The data is not validated and records can contain odd backslash characters and control characters which makes them awkward to process... (2 Replies)
Discussion started by: methyl
2 Replies

7. Shell Programming and Scripting

Need awk script to compare 2 fields in fixed length file.

Need a script that manipulates a fixed length file that will compare 2 fields in that file and if they are equal write that line to a new file. i.e. If fields 87-93 = fields 119-125, then write the entire line to a new file. Do this for every line in the file. After we get only the fields... (1 Reply)
Discussion started by: Muga801
1 Replies

8. Shell Programming and Scripting

Help with extracting words from fixed length files

I am very new to scripting and need to write a script that will extract the account number from a line that begins with HDR. For example, the file is as follows HDR2010072600300405505100726 00300405505 LBJ FREEWAY DALLAS TELEGRAPH ... (9 Replies)
Discussion started by: bds052189
9 Replies

9. Shell Programming and Scripting

awk to print fixed length columns to right side

Hi, I am in a situation to print the message on a column, where the each line starting position should be same. For example code: HOSTNAME1="1.2.3.4.5.6.7" TARGET_DIR="/tmp" echo "HOSTNAME1:" "$HOSTNAME1" | awk -v var="Everyone" '{len=55-length;printf("%s%*s\n",$0,len,var)}' echo... (4 Replies)
Discussion started by: tprabhaker
4 Replies

10. Shell Programming and Scripting

Splitting fixed length file using awk

Hi, I need to split a fixed length file of 160 characters based on value of a column. Example: ABC 456780001 DGDG SDFSF BCD 444440002 SSSS TTTTT ABC 777750003 HHHH UUUUU THH 888880001 FFFF LLLLLL HHH 999990002 GGGG OOOOO I need to split this file on basis of column from... (7 Replies)
Discussion started by: Neelkanth
7 Replies
BOMBERCLONE(6)							   Games Manual 						    BOMBERCLONE(6)

NAME
bomberclone -- free Bomberman-like game SYNOPSIS
bomberclone DESCRIPTION
This manual page documents briefly the bomberclone game. This manual page was written for the Debian distribution because the original program does not have a manual page. The goal of the game is to be the last one, who is alive. You can drop bombs which will explode after a certain time and destroy everything in horizontal and vertical direction. So you can remove stones or kill other players. But take care. Don't kill yourself otherwise the game will be over for you. During the game you will find different powerups to raise your skills. If you are running faster than your opponent and you have many bombs, you can catch him within lots of bombs and he has no chance to escape. You will get points for every player you have killed. If you win the game, you can earn additional points depending on how many players played the game. POWERUPS
FIRE ICON The Fire powerup gives your bombs more range. Maximum Range is 10. FIRE ICON The Fire powerup gives your bombs more range. Maximum Range is 10. BOMB ICON After picking up the Bomb item you can put one more bomb on the field. Maximum are 12 Bombs. SHOE ICON After you collect this powerup you will walk a little bit faster. SPECIALS
BOMB WITH FUSE ICON You can trigger the explosion of all your bombs by pressing the Special Use key. Warning don't wait to long or your bombs will explode anyway. BOMB WITH ELASTIC BAND ICON Push your and other bombs around the maze. But be carefull that the bomb is not going to explode MULTIPLE BOMBS ICON Lay a row of bombs in one direction to trap some players. To use this special, hold the Special use key and the direction key where you want to drop the row. SEE ALSO
http://www.bomberclone.de AUTHOR
This manual page was written by VU blade@debian.org for the Debian system (but may be used by others). Permission is granted to copy, dis- tribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. BOMBERCLONE(6)
All times are GMT -4. The time now is 12:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy