grep "<ctrl>v<tab>" abc.txt
Main Topics
Browse All TopicsHi ,
I need to search for a tab characters in a file, I have tried using teh below command but am not sure whether it is giving me the excat result as it is generating all the records from a file.
Ex: grep '\t' abc.txt
any help would be really appreciatable.
Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I am using ksh,
I am entering all the special characters (which causes processing the record fail) in a file like
I created a file file.pattern and I enetered al the special characters(>, !, %, * including tab ) in that file
and grep a abc.txt file for the special characters like the below command.
Ex: grep -f file.pattern abc.txt
This file.pattern should also contain tab character.
Based on http:#25346835, it looks like answers http:#25345941 and http:#25346744 (this one should be assigned fewer points than the first, since the answer is not actually using 'grep')
Business Accounts
Answer for Membership
by: jimfromsaPosted on 2009-09-16 at 07:05:48ID: 25345689
GREP \t filename should find it