Search Results

Search: Posts Made By: shijujoe
11,375
Posted By shijujoe
Hey..that syntax worked... ...
Hey..that syntax worked...

linux-kmy7:/home/shiju.joseph/Desktop # grep -w "[0-9]\{5\}-*" text.txt
12345-123213sdfsdfsdsdfsdfsd
65433-2342342342342342342342
45454-4353453453453453453453...
11,375
Posted By shijujoe
yes , it worked for the set of data you gave ...
yes , it worked for the set of data you gave

linux-kmy7:/home/shiju.joseph/Desktop # grep -w "[0-9]\{5\}-" text11.txt
12345-
23456-
linux-kmy7:/home/shiju.joseph/Desktop #

But dint work...
11,375
Posted By shijujoe
done , and this is the output ...
done , and this is the output

linux-kmy7:/home/shiju.joseph/Desktop # grep -wv "[0-9]\{5\}-" text11.txt
123-
123456-
123-
12-
212222-
linux-kmy7:/home/shiju.joseph/Desktop #

I wanted...
11,375
Posted By shijujoe
its openSuSE 11
its openSuSE 11
11,375
Posted By shijujoe
HI John, I am really sorry to say it dint...
HI John,

I am really sorry to say it dint work either...
donnno wat is wrong...
I searched other aletrnatives also but dint get a feasible work around yet.

Thanks
Shiju
11,375
Posted By shijujoe
Hi Pritish, it dint work.
Hi Pritish,

it dint work.
11,375
Posted By shijujoe
Hi John, I tried that but unfortuantely dint...
Hi John,

I tried that but unfortuantely dint work , returned nothing

egrep '[0-9]{5}-' text.txt gave output
egrep '[0-9]{5}-' text.txt |egrep -v '[0-9]{6}' dint give any ouput
...
11,375
Posted By shijujoe
extract unique pattern from large text file
hi johnbach,

Thanks very much for replying ,
I tried this method ,but am getting
12345-
123456- etc

I am not getting the lines which has exactly 5digits followed by hyphen

Thanks
Shiju ...
11,375
Posted By shijujoe
extract unique pattern from large text file
Hi All,

I am trying to extract data from a large text file , I want to extract lines which contains a five digit number followed by a hyphen , like

12345- , i tried with egrep ,eg : egrep...
Showing results 1 to 9 of 9

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