12-14-2013
Difference between code page used with grep and vi
Not certain the title is phrased correctly but here's the issue:
I need to scrape data out of a pdf file. I ftp the file from windows to unix(solaris 10) as a binary file. Open the file in vi and search for a string, Matrix, but no joy. Then I cat the same file, pipe it to grep 'Matrix' and the string is found.
Can anyone explain this behavior and, perhaps, how to get vi to act the same as grep. BTW I did not try awk, perl or sed; yet anyway.
Thanks,
rj
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Can someone tell me how do I find the list of comptabile codepages on Linux(suse) , Is it /usr/lib/locale or somewhere else ?
I was wandering if someone has expereince in using cycrillic chars (russian) in unix / linux ?
Thanks (2 Replies)
Discussion started by: braindrain
2 Replies
2. UNIX for Dummies Questions & Answers
What is the main difference between grep and sed (1 Reply)
Discussion started by: ss4u
1 Replies
3. UNIX for Dummies Questions & Answers
I am writing a script which will read in search terms from a text file and pass each line to Lynx. Lynx will grab the source html, then I want grep/tr, whatever to search for the first occurance of a term (mydomain.name), then delete from that 1st occurance on, creating a new end of file.
Then... (0 Replies)
Discussion started by: roninuta
0 Replies
4. UNIX Desktop Questions & Answers
Hi All,
Can anyone please explain me the difference between grep, egrep and fgrep with examples.
I am new to unix environment.. Your help is highly appreciated.
Regards,
ravi (2 Replies)
Discussion started by: ravind27
2 Replies
5. Shell Programming and Scripting
I want to download a particular page from the internet and get the source code of the page in html format.
I want to parse the source code to find a specific parameters using grep command.
could someone tell me the linux command to download a specific page and parse the source code of it.
... (1 Reply)
Discussion started by: ahamed
1 Replies
6. Shell Programming and Scripting
Hi
What is the difference between grep '.*' xx and grep .* xx?
What grep .* xx command will do where xx is file name.
Thanks
Sas (4 Replies)
Discussion started by: SasDutta
4 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
Please i need to know the difference between grep, egrep & grep -i when used to serach through a file.
My platform is SunOS 5.9 & i'm using the korn shell.
Regards,
- divroro12 - (2 Replies)
Discussion started by: divroro12
2 Replies
8. Shell Programming and Scripting
Hi,
I need to know the difference between this commands:
grep * *search*
grep "*" *search*
As far as i know does the 2nd command search for files which have a name with *search* and greps then all which have chars from a-z in the file content.
But was does the first command??
Best... (1 Reply)
Discussion started by: xus
1 Replies
9. AIX
Helo all,
I' trying to print Portuguese special characters like ç, ã, º, º .
I already set my print queue for CODE PAGE of printer ibm.860 but every time i send a print test i receive the following error:
0782-059 Attribute name passed to subroutine piocmdout
by program... (2 Replies)
Discussion started by: marques_rmc
2 Replies
10. Linux
Hi all...
Reference this URL:
https://www.unix.com/unix-for-beginners-questions-and-answers/282400-lower-ascii-characters.html#post303037272
Researching in google for an answer showed the numerous times this has been asked for in various guises.
So it inspired me to create a pseudo-IBM... (2 Replies)
Discussion started by: wisecracker
2 Replies
ZGREP(1) General Commands Manual ZGREP(1)
NAME
zgrep - search possibly compressed files for a regular expression
SYNOPSIS
zgrep [ grep_options ] [ -e ] pattern filename...
DESCRIPTION
Zgrep invokes grep on compressed or gzipped files. These grep options will cause zgrep to terminate with an error code:
(-[drRzZ]|--di*|--exc*|--inc*|--rec*|--nu*). All other options specified are passed directly to grep. If no file is specified, then the
standard input is decompressed if necessary and fed to grep. Otherwise the given files are uncompressed if necessary and fed to grep.
If the GREP environment variable is set, zgrep uses it as the grep program to be invoked.
EXIT CODE
2 - An option that is not supported was specified.
AUTHOR
Charles Levert (charles@comm.polymtl.ca)
SEE ALSO
grep(1), gzexe(1), gzip(1), zdiff(1), zforce(1), zmore(1), znew(1)
ZGREP(1)