02-26-2016
Hi Ravinder,
Thanks for your solution. I'm testing it at my end. Can you please let me know if we can write the output of the awk program to a new file?
Regards,
Jaya
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
This is related to one of my previous post but now with a slight difference: I need the "Updated:" to be in one line as well as the "Information:" on one line as well. These are in multiple lines right now as seen below. These can have 2 or more lines that needs to be in one line.
System name:... (8 Replies)
Discussion started by: The One
8 Replies
2. Shell Programming and Scripting
I can't decide if I should use AWK or PERL after pouring over these forums for hours today I decided I'd post something and see if I couldn't get some advice.
I've got a text file full of hundreds of events in this format:
Record Number : 1
Records in Seq : ... (3 Replies)
Discussion started by: Mayday22
3 Replies
3. Shell Programming and Scripting
i have the file <infile> with ^M charactrer. i just wnt to know through script whether the file have ^M character or not.
Please let me know the script steps to check the same.
Thanks in Advance
Ganesh. (3 Replies)
Discussion started by: Ganesh L
3 Replies
4. Shell Programming and Scripting
Hi All ,
I have a file with below data
# User@Host: xyz @
# Query_time: t1 Lock_time: t2 Rows_sent: n1 Rows_examined: n2
SET timestamp=1396852200;
select count(1) from table;
# Time: 140406 23:30:01
# User@Host: abc @
# Query_time: t1 Lock_time: t2 Rows_sent: n1 Rows_examined:... (6 Replies)
Discussion started by: rakesh_411
6 Replies
5. Shell Programming and Scripting
Hello,
I need a program that read a file line by line and prints out lines 1, 2 & 3 after an empty line... An example of entries in the file would be:
SRVXPAPI001 ERRO JUN24 07:28:34 1775
REASON= 0000, PROCID= #E506 #1065: TPCIPPR, INDEX= 003F
... (8 Replies)
Discussion started by: Ferocci
8 Replies
6. Shell Programming and Scripting
I am trying to combine lines with these conditions:
1. First line starts with text of "libname VALUE db2 datasrc" where VALUE can be any text.
2. If condition1 is met then continue to combine lines through a line that ends with a semicolon.
3. Ignore case when matching patterns and remove any... (5 Replies)
Discussion started by: Wes Kem
5 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have a requirement where I need to combine two lines in a file based on first character of each line in a file.
Please find the sample content of the file below:
Code:
_______________________
5, jaya, male, 4-5-90, single
smart
6, prakash, male, 5-4-84, married
fair
7, raghavi,... (1 Reply)
Discussion started by: jayaP
1 Replies
8. UNIX for Advanced & Expert Users
Hi,
I have a requirement where I need to combine two lines in a file based on first character of each line in a file.
Please find the sample content of the file below:
Code:
_______________________
5, jaya, male, 4-5-90, single
smart
6, prakash, male, 5-4-84, married
fair
7, raghavi,... (1 Reply)
Discussion started by: jayaP
1 Replies
9. Shell Programming and Scripting
I have been searching and trying to come up with an awk that will perform the following on a
converted text file (original is a pdf).
1. Since the first two lines are (begin with) text they are removed
2. if $1 is a number then all text is merged (combined) into one line until the next... (3 Replies)
Discussion started by: cmccabe
3 Replies
10. UNIX for Beginners Questions & Answers
In the awk piped to sed below I am trying to format file by removing the odd xxxx_digits and whitespace after, then move the even xxxx_digit to the line above it and add a space between them. There may be multiple lines in file but they are in the same format. The Filename_ID line is the last line... (4 Replies)
Discussion started by: cmccabe
4 Replies
JZIP(6) John's Z-code Interpreter Program JZIP(6)
NAME
jzip - execute Infocom v1-5 and Inform v1-5 & v8 game files
SYNOPSIS
jzip [ options ] z-file-name
DESCRIPTION
jzip invokes the Z-code Interpreter.
REQUIREMENTS
jzip will run under most (if not all) flavors of Unix, including AIX, Solaris, SunOS, HP/UX, Linux, Free/NetBSD, IRIX, NeXT Mach, DEC
OSF/1, and others.
EDITING
JZip now supports arrowkey editing in UNIX.
Up/Down
selects the previous / next command in history
Left/Right
moves the cursor over the line.
Backspace
deletes
Typing inserts under the cursor
OPTIONS
-l n lines in display
-c n columns in display
-r n text right margin (default = 1)
-t n text top margin (default = 0)
-v display version information
-m monochrome mode
-y set Tandy bit
-s n zmachine strict level, from 0 (none), 1 (report once, recommended) to 3.
ENVIRONMENT
jzip looks for the environment variable INFOCOM_PATH and will use the path found there to look for the story file specified on the command
line if the story file cannot be found in the current directory.
CREDITS
jzip is written and maintained by John Holder (j-holder@home.com), based on the ZIP v2.0 sources by Mark Howell and Olaf 'Olsen' Barthel.
AVAILABILITY
The most recent version of jzip can be downloaded from one of:
http://www.jzip.sourceforge.net/
ftp://ifarchive.org/infocom/interpreters/zip/
FILES
/usr/games/jzip
The Z-Code Interpreter Program
/usr/lib/games/zfiles
Recommended location for Zcode files
RELATED USENET NEWSGROUPS
Interactive Fiction (IF) authors should check out rec.arts.int-fiction, and IF players should check out rec.games.int-fiction.
2.1 JZIP(6)