- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- what is lex command text ??
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 07:38 AM
04-20-2006 07:38 AM
what is the meaning of following word "lex" ??
>file files.pgp
>files.pgp: lex command text
i waited somethin like this:
>file files.pgp
>files.pgp: awk program text
Thanks ...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 07:45 AM
04-20-2006 07:45 AM
Solutionlex recognizes tokens "if", ">=", "then"
yacc then parses groups of these tokens
if a >= 5 then ...
to first see if the syntax is valid and then to generate ojject or p-code to act upon these instructions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 07:58 AM
04-20-2006 07:58 AM
Re: what is lex command text ??
but ... :0(
when i run a script to crypt with pgp software, manually i run pgp command and is created a file as follows:
>ls -1 files*
files.pgp
>file files.pgp
>files.pgp: awk program text
but if this script is run from an Application, in automatical way the file is created but whey i aplied file command indicates other kind of file "lex .." when must be "awk program text as was created when was run manually :
>file files.pgp
>files.pgp: awk program text
question is: why???
Manuales.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 07:59 AM
04-20-2006 07:59 AM
Re: what is lex command text ??
but ... :0(
when i run a script to crypt with pgp software, manually i run pgp command and is created a file as follows:
>ls -1 files*
files.pgp
>file files.pgp
>files.pgp: awk program text
but if this script is run from an Application, in automatical way the file is created but whey i aplied file command indicates other kind of file "lex .." when must be "awk program text as was created when was run manually :
Hi all...
what is the meaning of following word "lex" ??
>file files.pgp
>files.pgp: lex command text
question is: why???
Manuales.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 08:04 AM
04-20-2006 08:04 AM
Re: what is lex command text ??
It then looks for patterns in text files.
The first match wins. Remember, file is really just guessing; it's a good guesser but ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 08:11 AM
04-20-2006 08:11 AM
Re: what is lex command text ??
The word "lex" comes from "lexical" which means relating to the vocabulary or words that make up a language.
As for running 'file' against a file, what is reported is the best attempt to categorize a file by reading the first 512 bytes and comparing it to "magic" patterns. These magic patterns are actually described in 'magic' header file. See the manpages for 'file(1)' and 'magic(4)' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 08:28 AM
04-20-2006 08:28 AM
Re: what is lex command text ??
now, when file was created from application was created again as "awk.." instead of "lex ..." , why? i could not understand why?
problem is when file as "awk" after aply file comand is correct to be used with other scripts . but when is created as "lex .." is not work !!!
why??
i do not do nothing and was created as "awk ..." ....
please , let me know why ??
thannks... Manuales ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 10:11 AM
04-20-2006 10:11 AM
Re: what is lex command text ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 12:25 PM
04-20-2006 12:25 PM
Re: what is lex command text ??
The file command works well for executable programs because they have a fairly unique set of numbers which are always the same for a specific file. But files that contain plain ASCII text cannot be identified except as ASCII text. So a Postscript file is an ASCII file. So is a script. Your PGP file may be an encrypted string but based on the tests in /etc/magic, you'll see all sorts of possibilities. The lex and awk entries in /etc/magic will match all sorts of ASCII files.
So the file command is basically useless except to decode core files.
Bill Hassell, sysadmin