Hey folks, another linux/unix newbie here trying to get some basics down. I cant seem to find out how to search for a "tab" using the grep command. Here are some things ive tried so far:
grep '<tab>' filename
grep '(actually hitting tab here)' filename
grep '/t' filename
grep '\t' filename
grep '[[:space:]]' filename
Does anyone know what the proper way to search for a tab is? The actual reason i need it is of course much more complicated than this example but just knowing how to find tab would be enough. Thanks a ton!
I also replied back in the general forum. It does in fact work for awk but i need to make substitutions with sed actually so it complicates things. Is there a way to pipeline the output from awk into sed and change it that way? It would be easiest to see my other post
As for that little perl program, im totally perl illiterate! Ive only used C++ and assembly and im trying to learn shell programming for linux and unix now. Maybe ill get to perl eventually though. hehe, thanks for the help though!
Sorry bud, but what would you do? Nothing was happening on this post really and i need/needed answers as fast as i could because its really halting my progress and i need to make some big scripts, and the sooner the better. I feel i was justified in posting on the general linux questions because i need an answer if i can get it. Sorry if it ticks you off and i apologize for wasting your time because you read them both but i really need help.
For anyone who was/is actually curious about the answer to my original question i found the answer. To insert a tab you hit ctrl + v then ctrl + i and that will insert a tab at the command prompt! Thanks for any help!