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
XvGetPortAttribute(3) Library Functions Manual XvGetPortAttribute(3)
Name
XvGetPortAttribute - return current port attribute value
Syntax
#include <X11/extensions/Xvlib.h>
XvGetPortAttribute(Display *dpy, XvPortID port,
Atom attribute, int p_value);
Arguments
dpy Specifies the connection to the X server.
port Specifies the port, associated with the given display, for which the attribute values are to be returned.
attribute An atom that identifies the attribute to be queried by this request. Control atoms are obtained using the XInternAtom request
with a string from the following table.
p_value Pointer to the location where the attribute value is written on return.
Description
XvGetPortAttribute(3) returns the current value of the requested port attribute in the integer pointed to by p_value. The attribute is
identified using an Atom that equates to the attribute name. The XInternAtom request can be used with one of the strings below to return a
matching Atom.
Attribute String Type Default
"XV_ENCODING" XvEncodingID Server dependent
"XV_HUE" [-1000...1000] 0
"XV_SATURATION" [-1000...1000] 0
"XV_BRIGHTNESS" [-1000...1000] 0
"XV_CONTRAST" [-1000...1000] 0
Returned Values
[Success]
Returned if XvGetPortAttribute(3) completed successfully.
[XvBadExtension]
Returned if the Xv extension is unavailable.
[XvBadAlloc]
Returned if XvGetPortAttribute(3) failed to allocate memory to process the request.
Diagnostics
[XvBadPort]
Generated if the requested port does not exist.
[BadMatch]
Generated if the requested attribute atom does not specify an attribute supported by the adaptor.
See Also
XvSetPortAttribute(3), XvPortNotify(3)
X Version 11 libXv 1.0.4 XvGetPortAttribute(3)