Sponsored Content
Top Forums UNIX for Dummies Questions & Answers File updation on matching key Post 302975170 by zaxxon on Thursday 9th of June 2016 02:55:12 AM
Old 06-09-2016
Please refrain double posts in terms of highjacking your own other thread and start using code tags, thanks.
 

10 More Discussions You Might Find Interesting

1. Programming

Directory updation Notification?

Hi, I'm a UNIX newbie .. so forgive me if this question sounds dumb. :) Is it possible for Unix to notify a process that a particular directory has been updated? Rather that the process constantly polling the directory ... Awaiting your replies .. Thanks, VJ (6 Replies)
Discussion started by: vjsony
6 Replies

2. Linux

gcc updation on Linux machine

Hi All, I already have gcc complier installed in my machine. Its version is : gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5) I am not sure whethere it's is latest gcc version available. I want to update my gcc version. Can anyone please suggest me what is the latest and stable gcc... (1 Reply)
Discussion started by: bisla.yogender
1 Replies

3. Shell Programming and Scripting

Matching by key fields

I have a file (key.dat) that contains two columns: AA|1234| BB|567| CC|8910| I have another file (extract.dat) that contains some data: SD|458|John|Smith| AA|3345|Frank|Williams| AA|1234|Bill|Garner| BD|0098|Yu|Lin| BB|567|Gail|Hansen| CC|8910|Ken|Nielsen| I want to compare the... (5 Replies)
Discussion started by: ChicagoBlues
5 Replies

4. Shell Programming and Scripting

awk should output if one input file doesnt have matching key

nawk -F, 'FNR==NR{a= $3 ;next} $2 in a{print $1, 'Person',$2, a}' OFS=, filea fileb Input filea Input fileb output i am getting : (2 Replies)
Discussion started by: pinnacle
2 Replies

5. AIX

Problem with updation of 'quota'

Hi, We have recently implemented 'quota' concept for the unix users. softlimit - 230MB hardlimit - 250MB We have applied the quota when few of users are more than the hardlimit,issue is that even though the users cleared the space, still its 'quota' was not updating properly. For some... (0 Replies)
Discussion started by: girish_satyam
0 Replies

6. Shell Programming and Scripting

check files updation

Hi All, Can anyone help to write the script to check files updation? i have files as mentioned below. which will be updated some time. i just want to check the last file is updating the data for last 15 mins or not. if its not updating i want to print NOT OK. if its updating data i want... (1 Reply)
Discussion started by: steve2216
1 Replies

7. Shell Programming and Scripting

Config file auto-updation

Hello All, I need to update my .cfg file which is used in the script for almost all runs. myfile.cfg file: var=1 var1=1 run=0 script: #! /bin/sh . /mydir/myfile.cfg echo $var"\t" $var1 exit So, the requirement is that the myfile.cfg should update every time I run the... (10 Replies)
Discussion started by: PikK45
10 Replies

8. Shell Programming and Scripting

Rsa public private key matching

Hi All, I have a requirement where i need to check if an rsa public key corresponds to a private key and hence return success or failure. Currently i am using the command diff <( ssh-keygen -y -e -f "$PRIVKEY" ) <( ssh-keygen -y -e -f "$PUBLICKEY" ) and its solving my purpose. This is in... (1 Reply)
Discussion started by: mritusmoi
1 Replies

9. UNIX for Dummies Questions & Answers

awk - Print lines if only matching key is found

I am looking to move matching lines (01 - 07) from File1 and 77 tab the matching string from File2, to File3.txt. I am almost done but - Currently, script is not printing lines to File3.txt in order. Thanks a lot. Any help is appreciated. Script I am using: awk 'FNR == NR && ! /^]*$/ {... (9 Replies)
Discussion started by: High-T
9 Replies

10. UNIX for Beginners Questions & Answers

Matching 2 files based on key

Hi all I have two files I need to match record from first file and second file on column 1,8 and and output only match records on file1 File1: 020059801803180116130926800002090000800231000245204003160000000002000461OUNCE000000350000100152500BM01007W0000 ... (5 Replies)
Discussion started by: arunkumar_mca
5 Replies
QwtSamplingThread(3)						 Qwt User's Guide					      QwtSamplingThread(3)

NAME
QwtSamplingThread - A thread collecting samples at regular intervals. SYNOPSIS
#include <qwt_sampling_thread.h> Public Slots void setInterval (double interval) void stop () Public Member Functions virtual ~QwtSamplingThread () double interval () const double elapsed () const Protected Member Functions QwtSamplingThread (QObject *parent=NULL) virtual void run () virtual void sample (double elapsed)=0 Detailed Description A thread collecting samples at regular intervals. Contiounous signals are converted into a discrete signal by collecting samples at regular intervals. A discrete signal can be displayed by a QwtPlotSeriesItem on a QwtPlot widget. QwtSamplingThread starts a thread calling perodically sample(), to collect and store ( or emit ) a single sample. See also: QwtPlotCurve, QwtPlotSeriesItem Constructor &; Destructor Documentation QwtSamplingThread::~QwtSamplingThread () [virtual] Destructor. QwtSamplingThread::QwtSamplingThread (QObject *parent = NULL) [explicit, protected] Constructor. Member Function Documentation double QwtSamplingThread::elapsed () const Returns: Time (in ms) since the thread was started See also: QThread::start(), run() double QwtSamplingThread::interval () const Returns: Interval (in ms), between 2 calls of sample() See also: setInterval() void QwtSamplingThread::run () [protected, virtual] Loop collecting samples started from QThread::start() See also: stop() virtual void QwtSamplingThread::sample (doubleelapsed) [protected, pure virtual] Collect a sample Parameters: elapsed Time since the thread was started in miliseconds void QwtSamplingThread::setInterval (doubleinterval) [slot] Change the interval (in ms), when sample() is called. The default interval is 1000.0 ( = 1s ) Parameters: interval Interval See also: interval() void QwtSamplingThread::stop () [slot] Terminate the collecting thread See also: QThread::start(), run() Author Generated automatically by Doxygen for Qwt User's Guide from the source code. Version 6.0.0 Fri Apr 15 2011 QwtSamplingThread(3)
All times are GMT -4. The time now is 06:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy