08-25-2015
Also to add to Don's reply, where has the red _full_stop_......
test2.test.com. 80 > 8082
......come from?
These are probably typos but be careful as it throws the rest of us...
This User Gave Thanks to wisecracker For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
ssh user@machine awk '{ split ($1,ar,"!");print ar}' samp >samp1
Error:
Unmatched '.
However on <machine> awk '{ split ($1,ar,"!");print ar}' samp >samp1
executes successfully.
Any suggestions. (1 Reply)
Discussion started by: bishweshwar
1 Replies
2. Shell Programming and Scripting
I have the follwing code:
awk '{print $1}' HITS #Searches HITS file column one. Column one is filenames
awk '{print $2}' HITS | sort -n | wc -l #Searches HITS file and sorts numerically and outputs line count. column 2 is IP addresses
awk... (4 Replies)
Discussion started by: amatuer_lee_3
4 Replies
3. AIX
Hi there
I have written a ksh script on a Red Hat OS and the following extract works.
awk '{if (NR != 1) {print $rec1_field }}' $file1 >> combined
When I run the same script on an AIX OS, I get the following error.
awk: 0602-562 Field $() is not correct.
The input line number is 2. The... (12 Replies)
Discussion started by: alanp
12 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
I'm facing an issue in my awk script.
The script is processing a large text file having the details of a number of persons, each person's details being written from 100 to 250 tags as given below:
100 START|
101klklk|
...
245 opr|
246 55|
250 END|
100 START|
...
245 pp|
246... (4 Replies)
Discussion started by: pgp_acc1
4 Replies
5. Shell Programming and Scripting
Hi Im trying to tidy up the output of a who command when it writes to a log, everything I've tried doesnt seem to work though, any help would be massively appreciated. Im using the awk command to set the OFS as tab.
#!/bin/bash
who >> /export/home/tjmoore/logusers
awk -F 'BEGIN... (3 Replies)
Discussion started by: 02JayJay02
3 Replies
6. Shell Programming and Scripting
Hi, Could anyone tell me what Im doing wrong here any help will be much appreciated
#!/bin/bash
ls -ltr /export/home/tjmoore > /export/home/tjmoore/log100
awk -F " " /export/home/tjmoore/log100 'BEGIN {OFS="\t";} {print $1,$2,$3,$4,$5,
$6,$7,$8,$9;}' > /export/home/tjmoore/log1001
I... (9 Replies)
Discussion started by: 02JayJay02
9 Replies
7. Shell Programming and Scripting
Hello experts,
I have two files which I'm uploading. One is an awk script and other file acts as an input to the script via positional parameter.
awk -f intlmenu.awk jobsq.txt
This run fine in C shell on SCO OpenServer Release 5.0.7.
When I run it on Solaris 10 ( tcsh shell )
I get... (2 Replies)
Discussion started by: maverick_here
2 Replies
8. Shell Programming and Scripting
Hi All,
I have a file say, sample.txt
Source Name: xxx
Department|Revenue
1001|3252
1002|3345
I am using the above file in one of my script. I need to read from Line 3 of the above the file and do some process.
My script has a code:
awk 'NR > 2' sample.txt | while read Dep; do... (9 Replies)
Discussion started by: machomaddy
9 Replies
9. Shell Programming and Scripting
Hi All,
Im trying to find the count of process running on remote server using SSH.
Below command dosen't work.
ssh -q user@host "ps -ef | grep "pattern" | grep -v 'grep' | awk '{print $2}'|wc -l"
But below command works.
ssh -q user@host "ps -ef | grep "pattern" | grep -v... (1 Reply)
Discussion started by: Girish19
1 Replies
10. UNIX for Advanced & Expert Users
Hi All,
I got struck at the below point where i am unable to get the desired output after forming the dynamic conditions.Below is the design.
1. We are getting inputs from the shell arguments and storing in a variable like below.
CONDITIONS="1=CT,2=US_10,3=CT_US_10"
2. After this i am... (14 Replies)
Discussion started by: cskumar
14 Replies
LEARN ABOUT ULTRIX
dwtcolormixsetnewcolor
DwtColorMixSetNewColor(3Dwt) DwtColorMixSetNewColor(3Dwt)
Name
DwtColorMixSetNewColor - Sets the new red, green, and blue color values in the color mixing widget.
Syntax
void DwtColorMixSetNewColor(cmw, red, green, blue)
Widget cmw;
unsigned short red;
unsigned short green;
unsigned short blue;
Arguments
cmw Specifies the widget ID of the color mixing widget.
red Specifies the new color red value. You can express the value in percentages or by the X color values (0 to 65535).
green Specifies the new color green value. You can express the value in percentages or by the X color values (0 to 65535).
blue Specifies the new color blue value. You can express the value in percentages or by the X color values (0 to 65535).
See the section on colormap functions in the Guide to the Xlib Library: C Language Binding for more information on X color val-
ues.
Description
The DwtColorMixSetNewColor function allows the user-supplied color mixer subwidget to pass the current color values to the color mixing
widget. Using DwtColorMixSetNewColor is more efficient than using XtSetValues.
See Also
DwtColorMixGetNewColor(3Dwt), DwtColorMixCreate(3Dwt)
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding
DwtColorMixSetNewColor(3Dwt)