12-04-2017
You certainly meant MIG not RudiC.
Anyway, a big thanks for the light on this dark area!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to read a bunch of log files and output the lines that contain particular strings.
To accomplish this, I've been running the following from the command line:
find . -name "*" | xargs grep " " | grep " " > output.txt
Two grep statements are needed in case I'm looking for a... (3 Replies)
Discussion started by: Rally_Point
3 Replies
2. Shell Programming and Scripting
i want to search in the current directory all the files that contain one word for example "hello"
i want to achieve it with the grep command but not with the grep * (2 Replies)
Discussion started by: aintour
2 Replies
3. Shell Programming and Scripting
Hello.
I would like to ask your help regarding the cp command. We are using a cp command to create a back-up copy of our file but to no avail. It's just not working. We already checked the file and directory permissions and all seems correct.
We have a script (ftp.script) which calls on... (1 Reply)
Discussion started by: udelalv
1 Replies
4. Shell Programming and Scripting
Hi All,
Is there any way where we can run few commands with different shell in a shell script ?
Let's have an example below,
My first line in script reads below,
#!/bin/sh
However due to some limitation of "/bin/sh" shell I wanted to use "/bin/bash" while executing few... (9 Replies)
Discussion started by: gr8_usk
9 Replies
5. Shell Programming and Scripting
I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found"
My code is as follows:
--------------------------
#!/bin/sh
user="test"
DIR="/bldtmp/"$user
VIEW="test.view1"
echo "TMPDIR before export... (4 Replies)
Discussion started by: dchoudhury
4 Replies
6. Shell Programming and Scripting
Hi All,
I have a question related to Shell scripting. In my shell script, I have following two commands in sequence:
sed 's/^/grep "^120" /g' $ORIGCHARGEDAMTLIST|sed "s;$;| cut -f$FIELD_NO1 -d '|' | awk '{ sum+=\$1} END {printf (\"%0.2f\\\n\", sum/100)}' >$TEMPFILE
mv $TEMPFILE $ORIGFILE... (3 Replies)
Discussion started by: angshuman
3 Replies
7. Post Here to Contact Site Administrators and Moderators
Variable I have in my shell script
diff=$1$2.diff
id=$2
new=new_$diff
echo "My id is $1"
echo "I want to sync for user account $id"
##awk command I am using is as below
cat $diff | awk -F'~' ''$2 == "$id"' {print $0}' > $new
I could see value of $id is not passing to the awk... (0 Replies)
Discussion started by: Ashunayak
0 Replies
8. Shell Programming and Scripting
I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist.
diff=$1$2.diff
id=$2 new=new_$diff
echo "My id is $1"
echo "I want to sync for user account $id"
##awk command I am using is as below
cat $diff | awk... (2 Replies)
Discussion started by: Ashunayak
2 Replies
9. UNIX for Dummies Questions & Answers
I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist.
diff=$1$2.diff
id=$2 new=new_$diff
echo "My id is $1"
echo "I want to sync for user account $id"
##awk command I am using is as below
cat $diff |... (1 Reply)
Discussion started by: Sarita Behera
1 Replies
10. UNIX for Dummies Questions & Answers
Hi everyone
I have a problem with my script
If I try directly this command
/usr/bin/nice -n 19 mysqldump -u root --password="******" wiki_schneider -c | nice -n 19 gzip -9 > /point_de_montage/$(date '+%Y%m%d')-wiki-db.sql.gz
It works
But if I simply add this command in a script and... (8 Replies)
Discussion started by: picemma
8 Replies
LEARN ABOUT DEBIAN
qwtcompasswindarrow
QwtCompassWindArrow(3) Qwt User's Guide QwtCompassWindArrow(3)
NAME
QwtCompassWindArrow -
An indicator for the wind direction.
SYNOPSIS
#include <qwt_dial_needle.h>
Inherits QwtDialNeedle.
Public Types
enum Style { Style1, Style2 }
Public Member Functions
virtual void draw (QPainter *, const QPoint &, int length, double direction, QPalette::ColorGroup=QPalette::Active) const
const QPalette & palette () const
QwtCompassWindArrow (Style, const QColor &light=Qt::white, const QColor &dark=Qt::gray)
virtual void setPalette (const QPalette &)
Static Public Member Functions
static void drawStyle1Needle (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, double direction)
static void drawStyle2Needle (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, double direction)
Static Protected Member Functions
static void drawKnob (QPainter *, const QPoint &pos, int width, const QBrush &, bool sunken)
Detailed Description
An indicator for the wind direction.
QwtCompassWindArrow shows the direction where the wind comes from.
o QColorGroup::Light
Used for Style1, or the light half of Style2
o QColorGroup::Dark
Used for the dark half of Style2
See also:
QwtDial, QwtCompass
Member Enumeration Documentation
enum QwtCompassWindArrow::Style
Style of the arrow.
Constructor & Destructor Documentation
QwtCompassWindArrow::QwtCompassWindArrow (Stylestyle, const QColor &light = Qt::white, const QColor &dark = Qt::gray) Constructor
Parameters:
style Arrow style
light Light color
dark Dark color
Member Function Documentation
void QwtCompassWindArrow::draw (QPainter *painter, const QPoint ¢er, intlength, doubledirection, QPalette::ColorGroupcolorGroup =
QPalette::Active) const [virtual] Draw the needle
Parameters:
painter Painter
center Center of the dial, start position for the needle
length Length of the needle
direction Direction of the needle, in degrees counter clockwise
colorGroup Color group, used for painting
Implements QwtDialNeedle.
void QwtDialNeedle::drawKnob (QPainter *painter, const QPoint &pos, intwidth, const QBrush &brush, boolsunken) [static, protected, inherited]
Draw the knob.
void QwtCompassWindArrow::drawStyle1Needle (QPainter *painter, const QPalette &palette, QPalette::ColorGroupcolorGroup, const QPoint ¢er,
intlength, doubledirection) [static] Draw a compass needle
Parameters:
painter Painter
palette Palette
colorGroup colorGroup
center Center of the dial, start position for the needle
length Length of the needle
direction Direction of the needle, in degrees counter clockwise
void QwtCompassWindArrow::drawStyle2Needle (QPainter *painter, const QPalette &palette, QPalette::ColorGroupcolorGroup, const QPoint ¢er,
intlength, doubledirection) [static] Draw a compass needle
Parameters:
painter Painter
palette Palette
colorGroup colorGroup
center Center of the dial, start position for the needle
length Length of the needle
direction Direction of the needle, in degrees counter clockwise
const QPalette & QwtDialNeedle::palette () const [inherited] Returns:
the palette of the needle.
void QwtDialNeedle::setPalette (const QPalette &palette) [virtual, inherited] Sets the palette for the needle.
Parameters:
palette New Palette
Author
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Version 5.2.2 Mon Aug 1 2011 QwtCompassWindArrow(3)