12-23-2003
most fastest way
> filename
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi All,
I try from command line to delete a user (Solaris8) and I get the following error:
UX: userdel: ERROR: Cannot update system files - loggin can not be deleted.
Any suggestions will be helpful. The root (/) file system has enough free space.
Regards,
Slava (4 Replies)
Discussion started by: spavlov
4 Replies
2. HP-UX
if I insert the CD in HP Unix 11 how can I amount it and see its contents using command line ??? :confused: :confused: :confused: (2 Replies)
Discussion started by: KSA
2 Replies
3. UNIX for Dummies Questions & Answers
Give shell script....which takes two file names as input and compares the contents, is both are same delete second file's contents.....
I try with "diff"...... but confusion how to use "diff" with if ---else
Thanking you (5 Replies)
Discussion started by: krishnampkkm
5 Replies
4. Shell Programming and Scripting
Can any one help me how the sed delete only first line command (D) works.
sed -f sedcmds File.txt
In this how the sed delete only first line command (D) works to delete the blank lines appearing more than ones leaving only one blank and deleting others blanks.
While doing step by step when... (2 Replies)
Discussion started by: gwgreen1
2 Replies
5. Shell Programming and Scripting
HI,
Im using the below commmand to delete lines having "(" at the start of a line.
sed -e '/^(/d'
But i need a command to delete lines that has only "(" in it and no other strings.
infile -
asdf
asdf
( asdf
(
asd
outfile (1 Reply)
Discussion started by: dvah
1 Replies
6. Shell Programming and Scripting
if i want to display the contents of a file between say line number 3 and 10 then i use the following command
sed -n '3,10p' filename
if this 3 was contained in x and 10 was contained in y then how wud this command modified?
sed -n '$x,$yp' filename does not work..please advise (2 Replies)
Discussion started by: arindamlive
2 Replies
7. Shell Programming and Scripting
I have a large data file that I need to edit. There are lines like,
> <IDNUMBER> (ST000002)
> <SUPPLIER> (ST000002)
> <IDNUMBER> (ST000004)
> <SUPPLIER> (ST000004)
and I need to delete everything after the >, excepting the end of line.
> <IDNUMBER>
> <SUPPLIER>
> <IDNUMBER>
> ... (4 Replies)
Discussion started by: LMHmedchem
4 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
As of now am using an awk command to check the number of columns in a file that has 10 lakh rows.
Is it possible to remove that particular line having an extra column and copy the remaining lines to a new file ?
YOUR HELP IS HIGHLY APPRECIATED. THANKS IN ADVANCE (5 Replies)
Discussion started by: Rahul619
5 Replies
9. Shell Programming and Scripting
here is what i want to achieve.. i have a file with below contents
cat fileName
blah blah blah
.
.DROP this
REJECT that
.
--sport 7800 -j REJECT --reject-with icmp-port-unreachable
--dport 7800 -j REJECT --reject-with icmp-port-unreachable
.
.
.
more blah blah blah
--dport 3306... (14 Replies)
Discussion started by: vivek d r
14 Replies
10. Shell Programming and Scripting
hello Team,
I want to delete below linux using sed command but I am getting error.sed -i '/url=/status.cgi?hostgroup=/d' 3
error:sed: -e expression #1, char 32: unknown option to `s'
Could you please help me with correct syntax.
My line contain / character because of that I am getting... (4 Replies)
Discussion started by: ghpradeep
4 Replies
LEARN ABOUT DEBIAN
xquerybesttile
XQueryBestSize(3) XLIB FUNCTIONS XQueryBestSize(3)
NAME
XQueryBestSize, XQueryBestTile, XQueryBestStipple - determine efficient sizes
SYNTAX
Status XQueryBestSize(Display *display, int class, Drawable which_screen, unsigned int width, unsigned int height, unsigned int
*width_return, unsigned int *height_return);
Status XQueryBestTile(Display *display, Drawable which_screen, unsigned int width, unsigned int height, unsigned int *width_return,
unsigned int *height_return);
Status XQueryBestStipple(Display *display, Drawable which_screen, unsigned int width, unsigned int height, unsigned int *width_return,
unsigned int *height_return);
ARGUMENTS
class Specifies the class that you are interested in. You can pass TileShape, CursorShape, or StippleShape.
display Specifies the connection to the X server.
width
height Specify the width and height.
which_screen
Specifies any drawable on the screen.
width_return
height_return
Return the width and height of the object best supported by the display hardware.
DESCRIPTION
The XQueryBestSize function returns the best or closest size to the specified size. For CursorShape, this is the largest size that can be
fully displayed on the screen specified by which_screen. For TileShape, this is the size that can be tiled fastest. For StippleShape,
this is the size that can be stippled fastest. For CursorShape, the drawable indicates the desired screen. For TileShape and Stipple-
Shape, the drawable indicates the screen and possibly the window class and depth. An InputOnly window cannot be used as the drawable for
TileShape or StippleShape, or a BadMatch error results.
XQueryBestSize can generate BadDrawable, BadMatch, and BadValue errors.
The XQueryBestTile function returns the best or closest size, that is, the size that can be tiled fastest on the screen specified by
which_screen. The drawable indicates the screen and possibly the window class and depth. If an InputOnly window is used as the drawable,
a BadMatch error results.
XQueryBestTile can generate BadDrawable and BadMatch errors.
The XQueryBestStipple function returns the best or closest size, that is, the size that can be stippled fastest on the screen specified by
which_screen. The drawable indicates the screen and possibly the window class and depth. If an InputOnly window is used as the drawable,
a BadMatch error results.
XQueryBestStipple can generate BadDrawable and BadMatch errors.
DIAGNOSTICS
BadMatch An InputOnly window is used as a Drawable.
BadDrawable
A value for a Drawable argument does not name a defined Window or Pixmap.
BadMatch The values do not exist for an InputOnly window.
BadValue Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argu-
ment, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this
error.
SEE ALSO
XCreateGC(3), XSetArcMode(3), XSetClipOrigin(3), XSetFillStyle(3), XSetFont(3), XSetLineAttributes(3), XSetState(3), XSetTile(3)
Xlib - C Language X Interface
X Version 11 libX11 1.5.0 XQueryBestSize(3)