Getting an ID out of a large files



HI im trying to get an ID numbers out of a large files,

I can initially grep for it, but I want to be able to only print the ID
[number] part in a list, can this be done some how?

This is what I get from an initial grep :


viepapshu10_20061215_000.log:[ERROR] com.jr.workordertable REQUEST
15/12/2006 06:10:09:175 0a92745c00fa544b8484652a4db81b3a Error ex
ecuting operation [fetch] Thread = ExecuteThread: '12' for queue:
'weblogic.kernel.Default' com.jr.workordertable.engine.storage.Sto
rageException: [WORKORDERTABLE.WORKORDER_NOT_FOUND] WorkOrder with ID
[5410101176] not found com.jr.workordertable.engine.storage.St
orageException: [WORKORDERTABLE.WORKORDER_NOT_FOUND] WorkOrder with ID
[5410101176] not found| at com.jr.workordertable.engine.stor
age.WorkOrderTable.fetch(Unknown Source)| at
com.jr.workordertable.WorkOrderManagerBean.fetch(Unknown Source)| at
com.jr.wo
rkordertable.WorkOrderManagerBean.a(Unknown Source)| at
com.jr.workordertable.WorkOrderManagerBean.submit(Unknown Source)| at
c
om.jr.workordertable.WorkOrderManagerBean_yk62h4_EOImpl.submit(WorkOrder
ManagerBean_yk62h4_EOImpl.java:208)| at com.jr.drivermana
ger.DriverManager.a(Unknown Source)| at
com.jr.drivermanager.DriverManager.execute(Unknown Source)| at
com.jr.datachannellistene
r.DataChannelListenerBean.authSubmit(Unknown Source)| at
com.jr.datachannellistener.DataChannelListenerBean.submit(Unknown
Source)
| at
com.jr.datachannellistener.DataChannelListenerBean_lqpdi6_EOImpl.submit(
DataChannelListenerBean_lqpdi6_EOImpl.java:46)|at
com.jr.datachannellistener.SIBManager.submitInternal(Unknown Source)|
at com.jr.datachannellistener.SIBManager$RAW.submit(
Unknown Source)| at
com.jr.datachannellistener.SIBManager$RAW.submitDriver(Unknown Source)|
at com.jr.driver.voice.util.
VoiceUtils.submitDriver(Unknown Source)| at
com.jr.driver.voice.util.WorkOrderManager.if(Unknown Source)| at
com.jr.dr
iver.voice.util.WorkOrderManager.initWorkOrderStatus(Unknown Source)|
at com.jr.driver.voice.util.WorkOrderManager.getNumberOfActi
veWorkOrders(Unknown Source)| at
com.jr.driver.voice.operation.Describe.a(Unknown Source)| at
com.jr.driver.voice.operation.Des
cribe.performAction(Unknown Source)| at
com.jr.driver.voice.operation.Operation.invokePerformAction(Unknown
Source)| at com.jr.dr
iver.voice.operation.Operation.perform(Unknown Source)| at
com.jr.driver.voice.VoiceDriverImpl.submit(Unknown Source)| at
com.jr.dr
iver.voice.VoiceDriverImpl.submit(Unknown Source)| at
com.jr.driver.voice.VoiceDriverBean.submit(Unknown Source)| at
com.jr.dr
iver.voice.VoiceDriverBean_cit5lw_EOImpl.submit(VoiceDriverBean_cit5lw_E
OImpl.java:46)| at com.jr.drivermanager.DriverManager.a(Unkn
own Source)| at com.jr.drivermanager.DriverManager.execute(Unknown
Source)| at com.jr.datachannellistener.DataChannelListenerBea
n.authSubmit(Unknown Source)| at
com.jr.datachannellistener.DataChannelListenerBean.submit(Unknown
Source)| at com.jr.datachanne
llistener.DataChannelListenerBean_lqpdi6_EOImpl.submit(DataChannelListen
erBean_lqpdi6_EOImpl.java:46)| at com.jr.datachannellistene
r.SIBManager.submitInternal(Unknown Source)| at
com.jr.datachannellistener.SIBManager$RAW.submit(Unknown Source)| at
com.jr.da
tachannellistener.SIBManager$RAW.submitDriver(Unknown Source)| at
com.jr.servicecontrolprocessor.message.MessageCoordinator.send(Un

But I need it to come back with only

ID [number]
ID [number]

In a long list.

Im sure it can be done in perl or perhaps awk somehow. On one command
line, any help appriecated.

Kind regards,

Alistair.
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



Relevant Pages

  • Re: MacTeX 2007 and documentation
    ... may be the most useful command available when doing searches at the ... will find every file on your system that has the text "memoir" on it, ... If locate generates 30 lines of text, where each line is a file, grep ... I need a Unix guru to chat to for half an hour or so to put me straight. ...
    (comp.text.tex)
  • Re: piping multiple selections to mv or cp and exclusion
    ... pipe to shell to execute each command statement ... Unix is indeed lifelong learning :-) ... and the regexp. ... back into the grep statement. ...
    (comp.unix.shell)
  • Re: MacTeX 2007 and documentation
    ... means you need expertise in your host operating system as well. ... locate memoir | grep pdf ... I'm not someone who lives at the command line, ...
    (comp.text.tex)
  • Re: Program to scan directories
    ... Is there a UNIX command which scans directories and execute any other ... the regex you specify here is /not/ given to grep to ... entries (files and subdirectories). ... tell grep to recurse through the kpathsea directory (the *.h regex ...
    (comp.unix.programmer)
  • Re: Using the grep command to filter
    ... I am a college student currently enrolled in a Unix class. ... that ubuntu Ubuntu UBUNTU ubunTU whatever in them. ... grep ubuntu /etc/* of course. ... Now look at the output of that grep command will give you all the ...
    (comp.unix.shell)