10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have a directory of files, I can show the number of lines in each file and order them from lowest to highest with:
wc -l *|sort
15263 Image.txt
16401 reference.txt
40459 richtexteditor.txt
How can I also print the number of unique lines in each file?
15263 1401 Image.txt
16401... (15 Replies)
Discussion started by: spacegoose
15 Replies
2. Shell Programming and Scripting
Hello,
I am newbie to bash scripting. Could someone help me with the following.
I have log file with output as shown below
**************************LOG*************************
11/20/2013 9:11:23.64 Pinging xx.xx.xx.xx with 32 bytes of data:
11/20/2013 9:11:23.64 Reply from xx.xx.xx.xx:... (4 Replies)
Discussion started by: meena_2013
4 Replies
3. Solaris
Hi All,
when i use history command i got the last 1000 command
i want to increase this to 10000
how can i do that (4 Replies)
Discussion started by: hosneyxxosman
4 Replies
4. Shell Programming and Scripting
I have a file with contents similar to this.
abcd
1234
4567
7666
jdjdjd
89289
9382
92
jksdj
9823
298
I want to write a shell script which count the number of lines that start with the number (disregard the lines starting with alphabets) (1 Reply)
Discussion started by: grajp002
1 Replies
5. Shell Programming and Scripting
I have a file with a list of config files numbered on the lefthand side 1-300. I need to have bash read each lines number and assign it to a variable so it can be chosen by the user called by the script later.
Ex. 1 some data
2 something else
3 more stuff
which number do you... (1 Reply)
Discussion started by: glev2005
1 Replies
6. Solaris
Hi Gurus
I want to know the command & tips regarding, how to increase or decrease inode number of the particular ufs filesystem. Is it possible to do it in a live/production environment.
Regards (3 Replies)
Discussion started by: girish.batra
3 Replies
7. Red Hat
Dear Friends ,
I have to install Redhat Ent Linux 5.0 (RHEL 5) in my machine . My HDD space is total 40 GB . During installation , I give three partitions ,
'/' = 30GB,
'swap'=2GB,
'home' =1GB.
Now my HDD remaining space is 7 GB . After installation , I need to increase the home... (4 Replies)
Discussion started by: shipon_97
4 Replies
8. Programming
hi all i got a assignment but this is part of it only..
i need the logic that all..
below is the kind of output that i want to get.
1
12
123
1234
12345
2345
345
45
5
i noe i need to use for loop cos currently i am doing a short cut way which is (1 Reply)
Discussion started by: xiaojesus
1 Replies
9. Shell Programming and Scripting
Hello, I need help in appending the line number of each line to the file and also to get the total number of lines. Can somebody please help me.
I have a file say:
abc
def
ccc
ddd
ffff
The output should be:
Instance1=abc
Instance2=def
Instance3=ccc
Instance4=ddd
Instance5=ffff
... (2 Replies)
Discussion started by: chiru_h
2 Replies
10. Shell Programming and Scripting
Hi All,
I am trying to read output from a command. The output format is as follows:
Thursday 13 Mar 2008 Information
This is sample text
Friday 14 Mar 2008 Warning
This is one more sample text
First line contains informtation (date etc) and the 2nd line contains some information.
... (3 Replies)
Discussion started by: ssunda6
3 Replies
snmp.conf(5) Apple Inc. snmp.conf(5)
NAME
snmp.conf - snmp configuration file for cups
DESCRIPTION
The snmp.conf file configures how the standard CUPS network backends (http, https, ipp, ipps, lpd, snmp, and socket) access printer infor-
mation using SNMPv1 and is normally located in the /etc/cups directory. Each line in the file can be a configuration directive, a blank
line, or a comment. Comment lines start with the # character.
The Community and DebugLevel directives are used by all backends. The remainder apply only to the SNMP backend (cups-snmp(8)).
DIRECTIVES
The following directives are understood by the CUPS network backends. Consult the on-line help for detailed descriptions:
Address @IF(name)
Address @LOCAL
Address address
Sends SNMP broadcast queries to the specified address(es). There is no default for the broadcast address.
Community name
Specifies the community name to use. Only a single community name may be specified. The default community name is "public".
DebugLevel number
Specifies the logging level from 0 (none) to 3 (everything). Typically only used for debugging (thus the name). The default debug
level is 0.
DeviceURI "regular expression" device-uri [... device-uri]
Specifies one or more device URIs that should be used for a given make and model string. The regular expression is used to match the
detected make and model, and the device URI strings must be of the form "scheme://%s[:port]/[path]", where "%s" represents the
detected address or hostname. There are no default device URI matching rules.
HostNameLookups on
HostNameLookups off
Specifies whether the addresses of printers should be converted to hostnames or left as numeric IP addresses. The default is "off".
MaxRunTime seconds
Specifies the maximum number of seconds that the SNMP backend will scan the network for printers. The default is 120 seconds (2 min-
utes).
SEE ALSO
cups-snmp(8),
http://localhost:631/help
COPYRIGHT
Copyright 2007-2013 by Apple Inc.
23 April 2012 CUPS snmp.conf(5)