Sponsored Content
Full Discussion: Data differences
Top Forums Shell Programming and Scripting Data differences Post 302433591 by ggoliath on Wednesday 30th of June 2010 06:22:35 AM
Old 06-30-2010
The expected functionality is too display, differences in both the remote server and the local server.
oh okay, how can i change the awk command , so that it will display differences in the sun5-printers.txt as well as sun8-printers.txt?

---------- Post updated at 12:22 ---------- Previous update was at 10:19 ----------

Would reversing the filenames..give me a different output?????
 

9 More Discussions You Might Find Interesting

1. Solaris

Differences between Solaris 2.5 and 9

Hi Can anybody tell what are the great differences in Solaris 2.5 and 9? I am seeking information like differences in libraries, User Interface, Configuraion files, daemons, Packaging and archiving tools, Hardware supported etc. Please help me, as this is little urgent. Even if you can refer... (4 Replies)
Discussion started by: charlcy
4 Replies

2. Shell Programming and Scripting

Sort differences

I have a file that contains /home /opt /stand /var /usr /tmp /opt /home I need to print the lines that are unique so the output would be /stand /var /usr /tmp and omit any filesystems that are duplicates. I searched the forums but did not find anything, although i searched on... (3 Replies)
Discussion started by: insania
3 Replies

3. UNIX for Dummies Questions & Answers

Differences

Hi all, I am using korn shell. I want to know what is the difference between hey and echo commands. (1 Reply)
Discussion started by: sivakumar.rj
1 Replies

4. Shell Programming and Scripting

Help with file differences

I have two huge files in the size of 1gb. They are produced by similar processes and the expected thing is that they should match in size and contents. I have produced both the files with the processes and they seem to be off only by few bytes. Size file name 1634502037 ... (2 Replies)
Discussion started by: dsravan
2 Replies

5. Shell Programming and Scripting

Printing the differences

Dear All, I am having a file with thousands of columns. I would like to find the difference between adjacent columns (ie $i and $(i+1)) and perform the following action: if the difference is less than -10, then i need to print "-2"; if the difference is between 0 and <-9, then i need to... (2 Replies)
Discussion started by: Fredrick
2 Replies

6. Shell Programming and Scripting

Differences between 2 Flat Files and process the differences

Hi Hope you are having a great weeknd !! I had a question and need your expertise for this : I have 2 files File1 & File2(of same structure) which I need to compare on some columns. I need to find the values which are there in File2 but not in File 1 and put the Differences in another file... (5 Replies)
Discussion started by: newbie_8398
5 Replies

7. Shell Programming and Scripting

Differences between 2 directories

Hi, I am trying to write a script under ksh to list all the differences between two directories. For example: # ls test1 test2 I need to compare all the files under between test1 & test2. When I do diff, it only compares the diectoires but it doesn't check inside. I did do... (3 Replies)
Discussion started by: samnyc
3 Replies

8. Shell Programming and Scripting

Differences between shells

What is the practical difference among the different shell like csh , ksh , bash etc.:confused::confused: Please use descriptive subjects instead of single words (2 Replies)
Discussion started by: hiten.r.chauhan
2 Replies

9. Shell Programming and Scripting

{} and ( ) differences

Can u tell the diff between the 1) $a and ${a} 2)] and ( ) 3)" " and ' ' , ` ` 4) 'a' , "a", please explain with simple example (1 Reply)
Discussion started by: mrbinoy
1 Replies
lpget(1M)						  System Administration Commands						 lpget(1M)

NAME
lpget - get printing configuration SYNOPSIS
lpget [-k key] [destination... | list] DESCRIPTION
The lpget utility reads printing configuration information from the configuration databases in $HOME/.printers, /etc/printers.conf, print- ers.conf.byname, and printers.org_dir printer. This information, called a configuration report, is displayed to the standard output. See printers(4) and printers.conf(4) for information about the printer configuration databases. lpget displays a configuration report for all keys for the specified destination or destinations by default. Use the -k option to display a configuration report for specific keys. Use the list operand to display a configuration report for all configured destinations. OPTIONS
The following option is supported: -k key Displays a configuration report for key. See printers.conf(4) for information about specifying key. OPERANDS
The following operands are supported: destination Displays a configuration report for destination. Destination can be either a printer of a class of printers. See lpad- min(1M). Specify destination using atomic or POSIX-style (server:destination) names. See printers.conf(4) for information regarding the naming conventions for atomic names and standards(5) for information concerning POSIX. list Displays a configuration report for all configured destinations. EXAMPLES
Example 1: Displaying a Configuration Report for the bsdaddr Key The following example displays a configuration report for the bsdaddr key for printer catalpa. example% lpget -k bsdaddr catalpa Example 2: A Configuration Report for all Keys for all Configured Destinations The following example displays a configuration report for all keys for all configured destinations. example% lpget list EXIT STATUS
The following exit values are returned: 0 Successful completion. non-zero An error occurred. FILES
/etc/printers.conf System printer configuration database. $HOME/.printers User-configurable printer database. printers.conf.byname NIS version of /etc/printers.conf. printers.org_dir NIS+ version of /etc/printers.conf. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWpcu | +-----------------------------+-----------------------------+ |Stability Level |Stable | +-----------------------------+-----------------------------+ SEE ALSO
ldap(1), lp(1), lpc(1B), lpq(1B), lpr(1B), lpstat(1), lpadmin(1M), lpset(1M), printers(4), printers.conf(4), attributes(5), standards(5) System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP) NOTES
Be mindful of the following if the LDAP database is used as the name service. If the ldapclient(1M) server is a replica LDAP server, LDAP printer database updates may not appear immediately, as the replica server may not not have been updated by the master server and can be out of sync. For example, a printer that you deleted by using lpset(1M) may still appear in the printer list you display with lpget until the replica is updated from the master. Replica servers vary as to how often they are updated from the master. Refer to the System Adminis- tration Guide: Naming and Directory Services (DNS, NIS, and LDAP) for more information on LDAP replication. SunOS 5.10 23 May 2003 lpget(1M)
All times are GMT -4. The time now is 07:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy