Search Results

Search: Posts Made By: tinku
2,067
Posted By tinku
Thanks thanhdat. Just want to know whether...
Thanks thanhdat.

Just want to know whether my understandin of the below expression is correct.

grep -o "0034\([0-9]\)\+" => This will fetch all numbers starting with 0034
grep -o...
2,067
Posted By tinku
Importance of \ [ ] + ? in grep
What is the significance of special characters used in grep command.
Like \ [ ] + ?

What is the meaning of the below command:


grep -o "0078\([0-9]\)\+" $i | sort | uniq


Can i replace...
8,692
Posted By tinku
Thank you all. I need one more...
Thank you all.

I need one more information... i do not have a else condition
so, no need for fi

<code>
if condition
then
statements
</code>

Thanks,
tinku
8,692
Posted By tinku
syntax error: unexpected end of file
Hi,
I have problem in constructing "IF" condition.

The below code throws "tst.sh: line 10: syntax error: unexpected end of file"

#!/bin/ksh
test=9
echo $test
if [[$test -eq 9]]
then
...
14,218
Posted By tinku
The last option is PERFECT. It gives exactly...
The last option is PERFECT. It gives exactly what i needed.

Tons of thanks.
14,218
Posted By tinku
getting uniq values
Hi,

Now, using the below code:

code
grep ^0032 F*.txt | tr -s " " | tr -d "\n" | tr -s "\r" | sort -n | uniq
code

I am getting the following output
code
0032459999 0032458888...
14,218
Posted By tinku
Thanks for the help. i have missed some...
Thanks for the help.

i have missed some information in my previous communication.

The number starts with the pattern "0032" and it is 10 character length. And I will
get multiple numbers on...
14,218
Posted By tinku
Getting unique list of numbers using grep
Hi,

I am going to fetch a list of numbers that starts with "0032" from a file with a format like the given below:

"
0032459999 0032458888 0032457777
0032451111 0032452222 0032453333

...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 03:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy