10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have an input file
12.4 1.72849432773174e+01 -7.74784188610632e+01
12.5 9.59432114416327e-01 -7.87018212757537e+01
15.6 5.20139995965960e-01 -5.61612429666624e+01
29.3 3.76696387248366e+00 -7.42896194101892e+01
32.1 1.86899877018077e+01 -7.56508762501408e+01
35 6.98857157014640e+00... (2 Replies)
Discussion started by: chrisjorg
2 Replies
2. UNIX for Dummies Questions & Answers
if we execute :set nu in vi mode, it displays the line numbers. so how to make this permanently in a file.
Whenever i execute cat , the line numbers should be there. please help me.
thanks (4 Replies)
Discussion started by: pandeesh
4 Replies
3. Shell Programming and Scripting
hey
a file called test :
Code:
hey1
hey2
hey3
........
how to :
Code:
1.hey1
2.hey2
3.hey3
.......... (3 Replies)
Discussion started by: eawedat
3 Replies
4. Shell Programming and Scripting
Hi,
my xml files looks something like this
<Instance Name="New York">
<Description></Description>
<Instance Name="A">
<Description></Description>
<PropertyValue Key="false" Name="Building A" />
</Instance>
<Instance Name="B">
... (4 Replies)
Discussion started by: tententen
4 Replies
5. Shell Programming and Scripting
I have several very large file that are extracts from Oracle tables. These files are formatted in XML type syntax with multiple entries like:
<ROW>
some information
more information
</ROW>
I want to grep for some words, then print all lines between <ROW> AND </ROW>. Can this be done with AWK?... (7 Replies)
Discussion started by: jbruce
7 Replies
6. Shell Programming and Scripting
Hi folks
I am not allowed to install GNU grep on AIX.
Here my code excerpt:
grep_fatal () {
/usr/sfw/bin/gegrep -B4 -A2 "FATAL|QUEUE|SIGHUP"
}
Howto the same on AIX based machine?
from manual GNU grep
‘--after-context=num’
Print num lines of trailing context after... (4 Replies)
Discussion started by: slashdotweenie
4 Replies
7. Shell Programming and Scripting
hello again guys,
I tried to make a script but due to array's limitations I didn't succeed...so I'm asking you :)
I need numbering the lines according to date (everyday I need to restart the counter)
for example:
ABCBD 20080101 XXX 1
FSDFD 20080101 BBB 2
FSDFD 20080102 HHH 1
and so... (3 Replies)
Discussion started by: elionba82
3 Replies
8. Shell Programming and Scripting
Hello everyone,
I want get numbered lines from a file. and i can do it with: sed = file.txt | sed "/./N; s/\n/ /" | sed -n "5,7p"
but the output that i get is something similar to:
5 line5
6 line6
7 line7
and i want something like this (with 2points after the number):
5:... (6 Replies)
Discussion started by: vibra
6 Replies
9. Windows & DOS: Issues & Discussions
Hi all,
I need to number the lines in a file.
I tried using "set nu" in the vi editor, but it is only temporary.
Can anyone help me please.
Thanx in advance.
MK (1 Reply)
Discussion started by: minazk
1 Replies
10. Shell Programming and Scripting
Hi all,
I need to number the lines in a file.
I tried using "set nu" in the vi editor, but it is only temporary.
Can anyone help me please.
Thanx in advance.
MK (4 Replies)
Discussion started by: minazk
4 Replies