Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Wed Aug 23, 2017 8:59 am


Tips & Tricks, Questions regarding shell scripts, awk, perl, sed and much more.

Author Message
mandrei99
Post  Post subject: grep match pattern: Binary file bincharacters.txt matches - How to make grep treat a file as text  |  Posted: Wed Dec 11, 2013 7:15 am

Joined: Tue Aug 04, 2009 9:16 am
Posts: 245

Offline
 

grep match pattern: Binary file bincharacters.txt matches - How to make grep treat a file as text

Code:
# grep text bincharacters.txt
Binary file bincharacters.txt matches


How to make grep treat a a text file containing binary characters as text and display the matching lines:
Code:
# grep -a text bincharacters.txt
context_verf_err                0





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "grep match pattern: Binary file bincharacters.txt matches - How to make grep treat a file as text"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. How to replace \w SED multiple matches on the same line without piping

mandrei99

0

1056

Tue Oct 08, 2013 6:29 am

mandrei99 View the latest post

There are no new unread posts for this topic. How to get the word frequency in a text

LaR3

0

2332

Wed Aug 05, 2009 7:01 am

LaR3 View the latest post

There are no new unread posts for this topic. How to convert pdf to text in FreeBSD

mandrei99

1

1093

Thu Jan 08, 2015 10:08 am

mandrei99 View the latest post

There are no new unread posts for this topic. How to convert a text into a list of words, one per line

LaR3

0

4446

Wed Aug 05, 2009 7:02 am

LaR3 View the latest post

There are no new unread posts for this topic. PERL: How to replace non-ascii characters/bytes in a file

admin

0

1130

Fri Apr 10, 2015 8:58 am

admin View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO