10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I haven't been here for a while and I might be forgetting some things.
I have an input text like this
titleA
http://myurl/bla/blabla/1234
http://myurl/bla/blabla/6789
titleB
http://myurl/bla/blabla/5678
http://myurl/bla/blabla/1234
titleC
http://myurl/bla/blabla/9123... (10 Replies)
Discussion started by: Kibou
10 Replies
2. 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
3. Shell Programming and Scripting
I need help to extract the file. If I am entering the user name like abcd@xyz.com, search the username and get the tread number. Once will get thread number all the line having same threadnumber wanted to keep in seperate file. It can be more than thread number for single username.
For... (3 Replies)
Discussion started by: nes
3 Replies
4. UNIX for Dummies Questions & Answers
I want to parse the lines and want to extract the double quoted numbers as:
"SQL3149N "72" rows were processed from the input file. "0" rows were
successfully inserted into the table. "0" rows were rejected."
and want the output in 3 variables like
a=72
b=0
c=0
thanks in advance
... (3 Replies)
Discussion started by: mahesh_191
3 Replies
5. Programming
I have datafile like
~dta.yunm
shhshsgggssssjsksjs
sggsjshsjsjssss
shshshhshshshs
i wish to take only first line and all other lines in concatenated form in second line what should I do???
output like
~dta.yunm
shhshsgggssssjsksjssggsjshsjsjssssshshshhshshshs
please tell me how... (7 Replies)
Discussion started by: sujit_singh
7 Replies
6. Shell Programming and Scripting
Hi All,
I have a file which has some Linux commands in every line like
more 456.dat
more 3232.dat
more 433.dat
I want to add texts like this at the end of every line:
more 456.dat > 1.txt
more 3232.dat > 2.txt
more 433.dat > 3.txt
So, that the result of more goes into 1.txt... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies
7. UNIX Desktop Questions & Answers
I have a file with hundreds of records and I need to find those records that have three digits at the beginning and the same three digits at the end.
$GREP '\(\)\(\)\(\)\3\2\1'I
believe this is part of the script but I am not sure how to compare these 3 digits with the 3 digits at the end of... (2 Replies)
Discussion started by: bartsimpsong
2 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. Solaris
Hello All,
Currently I am attempting to write a script which will capture a number at the end of a line.
The line which I am searching through ends as follows:
word word=number
for example
word word=3
OR
word word=15
I am stuck on how to capture whatever is to the right... (3 Replies)
Discussion started by: icalderus
3 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I am having problems using grep to extract only 3,4 or 5 digit numbers from a text file, using:
grep '\<\{3,5\}\>' test.txt
or
grep '\{3,5\}' test.txt
or
egrep '{3,5}' test.txt
I would appreciate any help that anyone can give me
thanks (1 Reply)
Discussion started by: ceemh3
1 Replies