And(&&) Question


 
Thread Tools Search this Thread
# 8  
Thank you very much everyone, especially "me2unix".

I've been trying to figure out this command for a while now.
Good stuff!
Where would we be without the net,
I love the internet!

Thanks a lot again,

the-A

 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SFTP Shell Script Get & Delete && Upload & Delete

Hi All, Do you have any sample script, - auto get file from SFTP remote server and delete file in remove server after downloaded. - only download specify filename - auto upload file from local to SFTP remote server and delete local folder file after uploaded - only upload specify filename ... (3 Replies)
Discussion started by: weesiong
3 Replies

2. Shell Programming and Scripting

awk Help: quick and easy question may be: How to use &&

Hi Guru's. I am trying to use to check if $5 is greater than 80 & if not 100, then to print $0 : awk '{ if ($5>80) && if ($5 != 100) print $0} But getting error: >bdf1|sed 's/%//g'|awk '{ if ($5>80) && if ($5 != 100) print $0}' syntax error The source line is 1. The error... (6 Replies)
Discussion started by: rveri
6 Replies

3. Shell Programming and Scripting

Sort a the file & refine data column & row format

cat file1.txt field1 "user1": field2:"data-cde" field3:"data-pqr" field4:"data-mno" field1 "user1": field2:"data-dcb" field3:"data-mxz" field4:"data-zul" field1 "user2": field2:"data-cqz" field3:"data-xoq" field4:"data-pos" Now i need to have the date like below. i have just... (7 Replies)
Discussion started by: ckaramsetty
7 Replies

4. Shell Programming and Scripting

Replace & sign to &amp word

Hi, I have text file abc.txt. In this file, I have the following data. Input: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith & Mrs Smith Mr Smith& Mrs Smith Mr Smith &Mrs Smith Output: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith &amp Mrs Smith Mr Smith&amp... (4 Replies)
Discussion started by: naveed
4 Replies

5. Shell Programming and Scripting

replace & with & xml file

Hello All I have a xml file with many sets of records like this <mytag>mydata</mytag> <tag2>data&</tag2> also same file can be like this <mytag>mydata</mytag> <tag2>data&</tag2> <tag3>data2&amp;data3</tag3> Now i can grep & and replace with &amp; for whole file but it will replace all... (4 Replies)
Discussion started by: lokaish23
4 Replies

6. Shell Programming and Scripting

PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL

Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP. I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies

7. Shell Programming and Scripting

Find & Replace string in multiple files & folders using perl

find . -type f -name "*.sql" -print|xargs perl -i -pe 's/pattern/replaced/g' this is simple logic to find and replace in multiple files & folders Hope this helps. Thanks Zaheer (0 Replies)
Discussion started by: Zaheer.mic
0 Replies

8. UNIX for Dummies Questions & Answers

Problem with xterm & tcsh & sourcing a script in a single command

Hi friends, I have a script that sets the env variable path based on different conditions. Now the new path variable setting should not done in the same terminal or same shell. Only a new terminal or new shell should have the new path env variable set. I am able to do this only as follows: >cd... (1 Reply)
Discussion started by: sowmya005
1 Replies

9. Shell Programming and Scripting

perl newbie . &&..programming newbie (question 2)

Hello everyone, I am having to do a lot of perl scripting these days and I am learning a lot. I have this problem I want to move files from a folder and all its sub folders to one parent folder, they are all .gz files.. there is folder1\folder2\*.gz and there are about 50 folders... (1 Reply)
Discussion started by: xytiz
1 Replies

10. UNIX for Dummies Questions & Answers

Search for & edit rows & columns in data file and pipe

Dear unix gurus, I have a data file with header information about a subject and also 3 columns of n rows of data on various items he owns. The data file looks something like this: adam peter blah blah blah blah blah blah car 01 30 200 02 31 400 03 57 121 .. .. .. .. .. .. n y... (8 Replies)
Discussion started by: tintin72
8 Replies
QMotifDialog(3qt)														 QMotifDialog(3qt)

NAME
QMotifDialog - The QDialog API for Motif dialogs SYNOPSIS
This class is part of the Qt Motif Extension. #include <qmotifdialog.h> Inherits QDialog. Public Members enum DialogType { Prompt, Selection, Command, FileSelection, Template, Error, Information, Message, Question, Warning, Working } QMotifDialog ( DialogType dtype, Widget parent = NULL, ArgList args = NULL, Cardinal argcount = 0, const char * name = 0, bool modal = FALSE, WFlags flags = 0 ) QMotifDialog ( Widget parent = NULL, ArgList args = NULL, Cardinal argcount = 0, const char * name = 0, bool modal = FALSE, WFlags flags = 0 ) virtual ~QMotifDialog () Widget shell () const Widget dialog () const Static Public Members void acceptCallback ( Widget, XtPointer client_data, XtPointer ) void rejectCallback ( Widget, XtPointer client_data, XtPointer ) DESCRIPTION
This class is defined in the Qt Motif Extension, which can be found in the qt/extensions directory. It is not included in the main Qt API. The QMotifDialog class provides the QDialog API for Motif dialogs. When migrating Motif applications to Qt, developers will want to rewrite their Motif dialogs using Qt, and switch to using Qt's modality semantics. QMotifDialog ensures that modal Motif dialogs continue to work properly when used in a Qt application. For the purpose of the Motif extension, Motif has two types of dialogs: predefined dialogs and custom dialogs. The predefined Motif dialogs are: Prompt Selection Command FileSelection Template Error Information Message Question Warning Working QMotifDialog provides a constructor for the predefined Motif dialog types, which creates a dialog shell and the dialog widget itself. Example usage QMotifDialog to create a predefined Motif dialog: ... XmString message = XmStringCreateLocalized( "This is a Message dialog.", XmSTRING_DEFAULT_CHARSET ); Arg args[1]; XtSetArg( args[0], XmNmessageString, message ); // parent is an ApplicationShell created earlier in the application QMotifDialog dailog( QMotifDialog::Message, parent, args, 1, "motif message dialog", TRUE ); XtAddCallback( dialog.dialog(), XmNokCallback, (XtCallbackProc) QMotifDialog::acceptCallback, &dialog ); XtAddCallback( dialog.dialog(), XmNcancelCallback, (XtCallbackProc) QMotifDialog::rejectCallback, &dialog ); dialog.exec(); XmStringFree( message ); ... QMotifDialog also provides a constructor for custom Motif dialogs, which only creates the dialog shell. The application programmer can create a custom dialog using the QMotifDialog shell as its parent. QMotifDialogs can be used with either an Xt/Motif or a QWidget parent. Member Type Documentation QMotifDialog::DialogType This enum lists the predefined Motif dialog types. QMotifDialog::Prompt QMotifDialog::Selection QMotifDialog::Command QMotifDialog::FileSelection QMotifDialog::Template QMotifDialog::Error QMotifDialog::Information QMotifDialog::Message QMotifDialog::Question QMotifDialog::Warning QMotifDialog::Working MEMBER FUNCTION DOCUMENTATION
QMotifDialog::QMotifDialog ( DialogType dtype, Widget parent = NULL, ArgList args = NULL, Cardinal argcount = 0, const char * name = 0, bool modal = FALSE, WFlags flags = 0 ) Creates a predefined Motif dialog of type dtype with a Motif widget parent. The arguments are passed in args, and the number of arguments in argcount. The name, modal and flags arguments are passed on to the QDialog constructor. Creates a Shell widget which is a special subclass of XmDialogShell. This allows applications to use the QDialog API with existing Motif dialogs. It also means that applications can properly handle modality with the QMotif extension. You can access the Shell widget with the shell() member function. Creates a dialog widget with the Shell widget as it's parent. The type of the dialog created is specified by the dtype argument. See the DialogType enum for a list of available dialog types. You can access the dialog widget with the dialog() member function. Warning: When QMotifDialog is destroyed, the Shell widget and the dialog widget are destroyed. You should not destroy the dialog widget yourself. QMotifDialog::QMotifDialog ( Widget parent = NULL, ArgList args = NULL, Cardinal argcount = 0, const char * name = 0, bool modal = FALSE, WFlags flags = 0 ) Creates a QMotifDialog for use in a custom Motif dialog. The dialog's parent is parent. The arguments are passed in args and the number of arguments in argcount. The name, modal and flags arguments are passed on to the QDialog constructor. Creates a Shell widget which is a special subclass of XmDialogShell. This allows applications to use the QDialog API with existing Motif dialogs. It also means that applications can properly handle modality with the QMotif extension. You can access the Shell widget with the shell() member function. A dialog widget is not created by this constructor. Instead, you should create the dialog widget as a child of this dialog. Once you do this, QMotifDialog will take ownership of your custom dialog, and you can access it with the dialog() member function. Warning: When QMotifDialog is destroyed, the Shell widget and the dialog widget are destroyed. You should not destroy the dialog widget yourself. QMotifDialog::~QMotifDialog () [virtual] Destroys the QDialog, dialog widget and shell widget. void QMotifDialog::acceptCallback ( Widget, XtPointer client_data, XtPointer ) [static] Convenient Xt/Motif callback to accept the QMotifDialog. The data is passed in client_data. Widget QMotifDialog::dialog () const Returns the Motif widget embedded in this dialog. Example: dialog/mainwindow.cpp. void QMotifDialog::rejectCallback ( Widget, XtPointer client_data, XtPointer ) [static] Convenient Xt/Motif callback to reject the QMotifDialog. The data is passed in client_data. Widget QMotifDialog::shell () const Returns the Shell widget embedded in this dialog. Example: dialog/mainwindow.cpp. SEE ALSO
http://doc.trolltech.com/qmotifdialog.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qmotifdialog.3qt) and the Qt version (3.1.1). Trolltech AS 9 December 2002 QMotifDialog(3qt)

Featured Tech Videos