10 More Discussions You Might Find Interesting
1. 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
2. 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
3. Shell Programming and Scripting
Hi,
I have this large file and sometimes there are duplicates and I want to basically find them and figure how many there are.
So I have a file with multiple columns and the last column (9) has the duplicates.
eg.
yan
tar
tar
man
ban
tan
tub
tub
tub
Basically what I want to... (6 Replies)
Discussion started by: kylle345
6 Replies
4. 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
5. UNIX for Dummies Questions & Answers
Is there a way to number lines and use something other than ":" to separate the number from the line?
Or can anyone recommend a way to replace the ":" with a tab?
Here's what I'm working with:
16859:52.67
16860:46
16861:39.63
16862:33.88
16863:29.64
16864:26.27
16865:22.09... (1 Reply)
Discussion started by: jdolny
1 Replies
6. 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
7. 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
8. Shell Programming and Scripting
I'm trying to do a script that will look for a log file if it is already there change the name to another name.
I.E
if log.0 is there
rename to log.1
rename log.1 to log.2
rename log.2 to log.3 and so on.
Only thing is I got no idea where or what is the best command to use for this? ... (3 Replies)
Discussion started by: merlin
3 Replies
9. UNIX for Dummies Questions & Answers
Just a shot question...
how to make 1,2,3,...999
into the form of
001,002,003....999
(3 digits)
Thanks.... (9 Replies)
Discussion started by: biglemon
9 Replies
10. UNIX for Dummies Questions & Answers
:confused: How does UNIX handle the numbering of processes? (2 Replies)
Discussion started by: tweety111
2 Replies