![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Substr throws an ERROR. Any alternatives? | naseert | Shell Programming and Scripting | 3 | 05-08-2008 01:34 PM |
| double dashes | systemsb | UNIX for Dummies Questions & Answers | 2 | 05-18-2006 11:41 AM |
| help removing dashes from social security number | Marcia P | UNIX for Dummies Questions & Answers | 2 | 02-28-2006 09:10 PM |
| fwrite throws segmentation fault | fermisoft | High Level Programming | 6 | 09-13-2005 02:46 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
grep throws in dashes?
Hey guys, I'm trying to grep for two things out of a file and I got that working but why is it randomly throwing "--" in the output? Is there a simple way to get rid of them? It only seems to do it when the line above what im looking for has numbers in it. Code:
$ egrep -i -B 1 'port-name|description' in.txt 127.0.0.1 description -- 127.0.0.2 description -- 127.0.0.3 description helpme port-name yay port-name |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|