Sponsored Content
Full Discussion: Awk: Version && nextfile
Top Forums Shell Programming and Scripting Awk: Version && nextfile Post 45447 by google on Saturday 20th of December 2003 10:08:26 AM
Old 12-20-2003
Since I dont have nextfile available to me, how can I control which file is being processed by my awk program? I had thought the value of NR would be reset after each file but that doesnt seem to be the case.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

What is the difference : SunOS & Solaris Version.

Sorry I think someone already pointed out this but I couldn't find it. Please tell me what is the difference between SunOS Version and Solaris Version. What is the purpose of maintaining these two things ? Thanks (2 Replies)
Discussion started by: champion
2 Replies

2. Web Development

apache2 & two php versions, how to use specific version

Hi all, I have my Debian web server, where apache2 and php 5.2.0 are installed from debian package. It worked fine, both in CLI & Browser. Recently i installed the php 5.2.9 from the source. To verify it i executed the "php --version" and it is showing 5.2.9 . But in the browser still it is... (19 Replies)
Discussion started by: thegeek
19 Replies

3. SCO

SCO & Informix SE version 7

hi, I need to download Informix SE version 7 for SCO but i could'nt find the link. please if someone can send me the link. thinks. (1 Reply)
Discussion started by: whisper
1 Replies

4. 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

5. AIX

Does anyone know the version of make on AIX 5.1 & 5.3?

Could you tell me the version of default make on AIX 5.1 & 5.3? (2 Replies)
Discussion started by: redraiment
2 Replies

6. 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

7. 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

8. Programming

pythonqt scriptint & orting to lower version

I am facing some problems in deploying my application for lower version of qt. Basically i want to generate scripts for my application and I have chosen pythonqt for this purpose. Pythonqt has the problem with lower version of Qt (Qt 4.5.2) and also with Higher version of Qt (Qt 4.7). So I... (1 Reply)
Discussion started by: sujandasmahapat
1 Replies

9. 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

10. 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
XkbGetAutoResetControls(3)					   XKB FUNCTIONS					XkbGetAutoResetControls(3)

NAME
XkbGetAutoResetControls - Gets the current values of the auto-reset controls SYNOPSIS
Bool XkbGetAutoResetControls (Display *dpy, unsigned int *auto_ctrls, unsigned int *auto_values); ARGUMENTS
- dpy connection to X server - auto_ctrls specifies which bits in auto_values are relevant - auto_values 1 bit => corresponding control has auto-reset on DESCRIPTION
You can configure the boolean controls to automatically be enabled or disabled when a program exits. This capability is controlled via two masks maintained in the X server on a per-client basis. There is no client-side Xkb data structure corresponding to these masks. Whenever the client exits for any reason, any boolean controls specified in the auto-reset mask are set to the corresponding value from the auto- reset values mask. This makes it possible for clients to "clean up after themselves" automatically, even if abnormally terminated. The bits used in the masks correspond to the EnabledControls control bits. For example, a client that replaces the keyboard bell with some other audible cue might want to turn off the AudibleBell control to prevent the server from also generating a sound and avoid cacophony. If the client were to exit without resetting the AudibleBell control, the user would be left without any feedback at all. Setting AudibleBell in both the auto-reset mask and auto-reset values guarantees that the audi- ble bell will be turned back on when the client exits. XkbGetAutoResetControls backfills auto_ctrls and auto_values with the AutoReset control attributes for this particular client. It returns True if successful, and False otherwise. RETURN VALUES
True The XkbGetAutoResetControls function returns True when it successfully backfills auto_ctrls and auto_values with the AutoRe- set control attributes for this particular client. False The XkbGetAutoResetControls function returns False when it does not successfully backfill auto_ctrls and auto_values with the AutoReset control attributes for this particular client. X Version 11 libX11 1.6.0 XkbGetAutoResetControls(3)
All times are GMT -4. The time now is 08:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy