10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
How would you grep for a line containing only 5 numbers? Something like this.
10 2 12 1 13 (4 Replies)
Discussion started by: cokedude
4 Replies
2. Shell Programming and Scripting
Hi,
Below is a scattered representation of numbers .
1 2
11 22
11 22
1 2
1 2
11 22
1 2
11 22
I need to display only the following sequence "" and delete of the remainder from the output. The output should look like (2 Replies)
Discussion started by: Ananth12
2 Replies
3. Shell Programming and Scripting
Hi Guys,
I want to remove commas from just the numbers in the file.
So both sides of the comma should be numbers.
Input file
Johan
1,234 nb
jan
123,3
hi, hello, bye
12,345,54
hejhej
Desired output:
Johan
1234 nb
jan (6 Replies)
Discussion started by: Johanni
6 Replies
4. Shell Programming and Scripting
So, I've been working on a project which takes layer 7 metadata from pcap dumps and archives it. However, there is a lot of dataless information that I don't want in my output. I know of ways to produce the output I want from the input file below, but I want a method of doing this, regardless of... (2 Replies)
Discussion started by: eh3civic
2 Replies
5. Shell Programming and Scripting
Hi! I'm trying to assign line numbers to each line of the file
for example consider the following..
The contents of the input file are
hello how are you?
I'm fine.
How about you?
I'm trying to get the following output..
1 hello how are you?
2 I'm fine.
3 How about you? ... (8 Replies)
Discussion started by: abk07
8 Replies
6. Shell Programming and Scripting
hi there ,
i m new to unix , i d like to ask how can a get only even numbered lines matches with the word i search from txt file
for example :
3461:1.D. The copyright laws of the place where you are located also govern
3471:1.E. Unless you have removed all references to Project... (17 Replies)
Discussion started by: brhn
17 Replies
7. Shell Programming and Scripting
Hi All,
How to get line numbers when we more on a file in LINUX
thanks
firestar (1 Reply)
Discussion started by: firestar
1 Replies
8. UNIX for Advanced & Expert Users
Hi i would like to add line numbers to end of each line in a file.
I am able to do it in the front of each line using sed, but not able to add at the end of the file.
Can anyone suggest
The following code adds line number to start of each line
sed = filename | sed 'N;s/\n/\t/'
how can i... (5 Replies)
Discussion started by: rudoraj
5 Replies
9. Shell Programming and Scripting
I have one me.txt file like
aaa 765 gfre 534 jhk 321
cvvb 98 hftg 2 bdg2 hfuk 65
etc..
now I want to remove all numbers form that file using shell script and out put will be printed in me1.txt
output:
aaa gfre jhk
cvvb hftg bdg hfuk
please help me. (2 Replies)
Discussion started by: rinku
2 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I have 3 lines in a text file that is similar to this (as a result of a diff between 2 files):
35,36d34
< DATA.EVENT.EVENT_ID.s = "3661208"
< DATA.EVENT.EVENT_ID.s = "3661208"
I am trying to get it down to just this:
DATA.EVENT.EVENT_ID.s = "3661208"
How can I do this?... (11 Replies)
Discussion started by: ocelot
11 Replies