Sponsored Content
Full Discussion: Bit Mapping
Top Forums Shell Programming and Scripting Bit Mapping Post 302465781 by readycpbala on Sunday 24th of October 2010 08:08:18 AM
Old 10-24-2010
what do you mean by filter ?
extract those ? or filter them out ?

I want Extract those records

you need them to meet both condition 1) AND 2) or just one of them if 1) OR 2) then print|filter out ????

both the Condition should meet
---------- Post updated at 12:21 PM ---------- Previous update was at 12:12 PM ----------

Code:
awk -F, '($18==16384) && ($1==706)' inputfile

Field 18 should be checked with Bitwise operator (want to match the Bitwise AND)
??
in your exemple none of the record have a first field with value 706 ... did you mean field 2 or field 3 instead ?
Reply With Quote Multi-Quote This Message Quick reply to this message Thanks

Last edited by Scott; 10-24-2010 at 09:24 AM.. Reason: Code tags, please...
 

5 More Discussions You Might Find Interesting

1. Programming

copying or concatinating string from 1st bit, leaving 0th bit

Hello, If i have 2 strings str1 and str2, i would like to copy/concatenate str2 to str1, from 1st bit leaving the 0th bit. How do i do it? (2 Replies)
Discussion started by: jazz
2 Replies

2. UNIX for Advanced & Expert Users

migrating unix mp-ras 32 bit to linux suse 64 bit

Hi. I need to migrate the whole unix environment from a Unix mp-ras 32 bit to a Linux Suse 64 bit. 1) can i use cpio to copy the data? 2) can i just copy the users from unix to linux or do i have to create them by hand 3) are there any other concerns i should worry about? thanx (1 Reply)
Discussion started by: mrodrig
1 Replies

3. Shell Programming and Scripting

Creating unique mapping from multiple mapping

Hello, I do not know if this is the right title to use. I have a large dictionary database which has the following structure: where a b c d e are in English and p q r s t are in a target language., the two separated by the delimiter =. What I am looking for is a perl script which will take... (5 Replies)
Discussion started by: gimley
5 Replies

4. Shell Programming and Scripting

How to handle 64 bit arithmetic operation at 32 bit compiled perl interpreter?H

Hi, Here is the issue. From the program snippet I have Base: 0x1800000000, Size: 0x3FFE7FFFFFFFF which are of 40 and 56 bits. SO I used use bignum to do the math but summing them up I always failed having correct result. perl interpreter info, perl, v5.8.8 built for... (0 Replies)
Discussion started by: rrd1986
0 Replies

5. Windows & DOS: Issues & Discussions

Which version of Windows Vista to install with a product key? 32-bit or 64-bit?

Hello everyone. I bought a dell laptop (XPS M1330) online which came without a hard drive. There is a Windows Vista Ultimate OEMAct sticker with product key at the bottom case. I checked dell website (here) for this model and it says this model supports both 32 and 64-bit version of Windows... (4 Replies)
Discussion started by: milhan
4 Replies
ln01of(8)						      System Manager's Manual							 ln01of(8)

Name
       ln01of - LN01(S) laser printer filter

Syntax
       /usr/lib/lpdfilters/ln01of [-c] [-nlogin] [-hhost] [-wwidth] [-lnum] [-iindent]	[accounting file]

Description
       The  filter  is used to filter text data destined for the LN01 and LN01S laser printers.  The filter handles the device dependencies of the
       printers and performs accounting functions.  Accounting records are written to the file specified by the af field in at the time of comple-
       tion for each job.

       The  filter can handle plain ASCII files and files that have been preprocessed by nroff.  Since nroff only deals with monospaced characters
       this limits the number of fonts that will work effectively. The fonts and font selection files are in The ln01of  filter  translates  nroff
       control	sequences  for underlining into the correct LN01(S) control sequences, but cannot handle superscripting and subscripting.  It will
       pass through any escape or control sequences.

       The filter can be the specified filter in both the of and the if fields in the file, see When both fields are specified the  of	filter	is
       used  only  to  print the banner page.  It is then stopped to allow the if filter access to the printer. The if filter maintains accounting
       information.

       If the of field is the only one specified the filter is used to print the banner page.  It is then stopped and restarted. This  allows  the
       of filter to be used to maintain accounting information.

       If the if field is the only one specified the banner page will be sent directly to the printer. If the printer has been left in an undeter-
       mined state the banner page may not print correctly.

       The best results will be obtained when the filter is specified in both the of and if fields.  For a more detailed discussion on filters see
       the ``Line Printer Spooler Manual'' in the ULTRIX Supplementary Documents, Volume 2: Programmer.

Options
       The arguments passed to the filter depend on its use.  The of filter is called with the following arguments:

       ln01of -wwidth -llength
	      The width and length values come from the pw and pl fields in the database.  The if (or restarted of) filter is passed the following
	      arguments:

       ln01of -c -nlogin -hhost -wwidth -lnum -iindent	accounting file
	      The -c flag is optional, and supplied only when control characters are to be printed, that is, when the -l  option  of  is  used	to
	      print the file.  The -w and -l arguments are the same as for the of filter, however, they may have different values if the -w and/or
	      -z options of were used to print the file.  The -n and -h arguments specify the login name and host name of the  job  owner.   These
	      arguments  are  used to record accounting information. The -i option specifies the amount of indentation to be used.  The last argu-
	      ment is the name of the accounting file specified from the af field in the database.

Diagnostics
       The lf field (default /dev/null) in the database specifies error logging file name.

Files
       Printer capabilities database

       See Also
	      lpr(1), pr(1), printcap(5), lpd(8), MAKEDEV(8), pac(8)
	      ``Line Printer Spooler Manual,'' ULTRIX Supplementary Documents, Volume 2: Programmer

																	 ln01of(8)
All times are GMT -4. The time now is 07:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy