10-01-2014
Thanks for reply.
'/Stop_pattern/ {P=0} # stop pattern will reset the print counter
why are we resetting print counter ?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I want to Print starting 3rd line until end of the file. Pls let me know the command.
Thanks in advance. (1 Reply)
Discussion started by: smc3
1 Replies
2. Shell Programming and Scripting
Hi,
I need help with using an awk or sed filter on the below line
ALTER TABLE "ACCOUNT" ADD CONSTRAINT "ACCOUNT_PK" PRIMARY KEY ("ACCT_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "WMC_DATA" LOGGING ENABLE
Look for... (2 Replies)
Discussion started by: rajan_san
2 Replies
3. UNIX for Advanced & Expert Users
Hi,
I need help with using an awk or sed filter on the below line
ALTER TABLE "ACCOUNT" ADD CONSTRAINT "ACCOUNT_PK" PRIMARY KEY ("ACCT_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "WMC_DATA" LOGGING ENABLE
Look for... (1 Reply)
Discussion started by: rajan_san
1 Replies
4. Shell Programming and Scripting
Dear All
I have a file like this
112534554
446538656
444695656
225696966
226569744
228787874
113536566
443533535
222564552
115464656
225445345
225533234
I want to cut the file into different parts where the first two columns are '11' . The first two columns will be either... (3 Replies)
Discussion started by: anoopvraj
3 Replies
5. UNIX for Dummies Questions & Answers
Hello All,
i am a newbie and need some help when reading a csv file in a bourne shell script. I want to read 10 lines, then wait for a minute and then do a reading of another 10 lines and so on in the same way. I want to do this till the end of file.
Any inputs are appreciated
... (3 Replies)
Discussion started by: victor.s
3 Replies
6. Shell Programming and Scripting
Hi,
I have a file as below
select or create proc
/*comments*/
/*comments*/
/*comments*/
/*comments*/
( variables4 datatypes1,
variables1 datatypes2,
variables2 datatypes3,
variables3 datatypes2
)
some text some text
(
sometext some text
)
some text some text (3 Replies)
Discussion started by: manasa_vs
3 Replies
7. Shell Programming and Scripting
Hi, i have file f1.txt with data like:
CHECK
a
b
CHECK
c
d
CHECK
e
f
JOB_START
....
I want to match the last occurrence of 'CHECK' until the end of the file.
I can use awk:
awk '/^CHECK/ { buf = "" } { buf = buf "\n" $0 } END { print buf }' f1.txt | tail +2Is there a cleaner way of... (2 Replies)
Discussion started by: ysrini
2 Replies
8. Shell Programming and Scripting
I have a file which is like this
………………………………………..
…………………………………
…………………………………
……………………………………
…………………………………….
………………………………
<<<from_here>>>
………………………………
……………………………….
I want a script which would fetch the data starting from <<<from_here>>> in the file till the end... (2 Replies)
Discussion started by: halfafringe
2 Replies
9. Emergency UNIX and Linux Support
Hello Friends,
Hope all are doing fine.
Here is a tricky issue.
my input file is like this
07 10 14 20 21
03 15 27 30 32
01 10 11 19 30
02 06 14 15 17
01 06 20 25 29
Logic:
1. Please print another column as "0-0-0-0-0" for the first and second rows.
2. Read the first column... (4 Replies)
Discussion started by: jacobs.smith
4 Replies
10. Shell Programming and Scripting
Hi, i have file file.txt with data like:
START
03:11:30 a
03:11:40 b
END
START
03:13:30 eee
03:13:35 fff
END
jjjjjjjjjjjjjjjjjjjjj
START
03:14:30 eee
03:15:30 fff
END
ggggggggggg
iiiiiiiiiiiiiiiiiiiiiiiii
I want the below output
START (13 Replies)
Discussion started by: Jyotshna
13 Replies
LEARN ABOUT HPUX
dtinfostyledtd
dtinfoStyle.dtd(file formats) dtinfoStyle.dtd(file formats)
NAME
dtinfoStyle.dtd -- dtinfo style sheet document type definition
DESCRIPTION
dtinfoStyle.dtd describes the SGML features available for specifying how a document should be rendered. Style sheets associate the elements
in a given document hierarchy with on-line or print formatting characteristics, and are part of the DtInfo Toolkit.
With dtinfo, you use a single style sheet to specify both print and online rendering of the elements in your DTD. The print and online
feature sets match in function, description, and specification, with just four exceptions for print-specific features
Basic Style Sheet Format
The basic style sheet format first defines autonumbers. Then, for each element (Path) the style sheet defines its feature set. For informa-
tion see, "Understanding Dtinfo Style Sheets" and "Creating a Style Sheet" in CDE: Information Manager Author's and Programmer's Guide.
You can also find an ASCII file of the dtinfoStyle.dtd in /usr/dt/infolib/%L/SGML/dtinfoStyle.dtd.
AutoNumber
To use system-generated number tokens in element formatting, first create an AutoNumber specification for each token stream. (Note that
these tokens can only be used with the Prefix, Suffix, Header and Footer features.)
A simple example is:
<AutoNumber
id=chapnum
reset="Book Part"
counter=chapter>
A more complex example is:
<AutoNumber
id=fignum
type=UCroman
initial="I"
delta=l
counter="FIG TABLE"
reset=chap>
<path>NUMITEM</>
<margin top=4pt bottom=4pt>
<prefix><auto id=NumList></prefix>
where:
type The kind of counter values:Arabic, UCalpha, LCalpha, UCroman, LCroman. The default value is Arabic.
id The unique name of this token. You can refer to this name, for example, in a Prefix. Required.
initial The initial value for this token, which must be consistent with the Type. The default is 1.
delta The value by which the system increments or decrements the token. The default is to increment by 1.
counter The element(s) that cause this token to use the Delta to change values. Required.
reset The element(s) that cause this token to reset to its initial value. Required.
SEE ALSO
CDE: Information Manager Author's and Programmer's Guide, dtinfo(1), dtinfogen(1), dtinfoBook.dtd - dtinfoBookdtd(5), dtinfoTOC.dtd - dtin-
foTOCdtd(5)
dtinfoStyle.dtd(file formats)