Sponsored Content
Full Discussion: Help fixing awk code
Top Forums Shell Programming and Scripting Help fixing awk code Post 302989817 by Corona688 on Wednesday 18th of January 2017 02:38:41 PM
Old 01-18-2017
Show your code, and then maybe we can tell you why it's not working.

Don't, and we'll never know.
 

9 More Discussions You Might Find Interesting

1. Linux

fixing with sed

I am trying to replace the value of $f3 but its not working . I don't know what I am missing here . cat dim_copy.20080516.sql | grep -i "create view" | grep -v OPSDM002 | while read f1 f2 f3 f4 f5 f6 f7 f8 f9 do echo " $f3 " sed -e... (13 Replies)
Discussion started by: capri_drm
13 Replies

2. Shell Programming and Scripting

Help fixing awk code to print values from 2 files

Hi everyone, Please help on this: I have file1: <file title="Title 1 and 2"> <report> <title>Title 1</title> <number>No. 1234</number> <address>Address 1</address> <date>October 07, 2009</date> <description>Some text</description> </report> ... (6 Replies)
Discussion started by: Ophiuchus
6 Replies

3. Shell Programming and Scripting

Fixing the width of a word

Is there a way to fix the width of the word being printed to a file? I am trying to create an output to a file with columns , like a spread sheet. I have used "\t" to adjust the columns but still it does not show well in the file, mainly due to the variable length values in the column so \t does... (1 Reply)
Discussion started by: davidtd
1 Replies

4. Shell Programming and Scripting

help fixing awk statement

awk "BEGIN {if($MessageREAD<$ThresholdW) {print \"OK\" ; exit 0} else if(($MessageREAD>=$ThresholdW) && ($MessageREAD<$ThresholdC)) {print \"WARNING\" ; exit 1}" else if($MessageREAD<=$ThresholdC) {print \"CRITICAL\" ;... (4 Replies)
Discussion started by: SkySmart
4 Replies

5. Shell Programming and Scripting

Awk Problem - Fixing needed

os: sunos/linux shell: bash awk -v PCT="$PERCENTAGE" -v UWARN="$UWARNING" -v UCRIT="$UCRITICAL" 'BEGIN { PCT=PCT+0; UWARN=UWARN+0; UCRIT=UCRIT+0 ; if(PCT<UWARN) { printf \" '${FILESYS}':... (3 Replies)
Discussion started by: SkySmart
3 Replies

6. Homework & Coursework Questions

Help fixing my database script

1. The problem statement, all variables and given/known data: I need help I get a variant of syntax errors when compiling my script to maintain a database. It's a simple database meant to create/view/maintain vehicles. 2. Relevant commands, code, scripts, algorithms: my if statements have... (5 Replies)
Discussion started by: gamernerd101
5 Replies

7. AIX

Fixing security problem

Hi I use Rapid 7 to check some servers ( AIX 5.3 ) for security problems. There are 2 problems I don't know to deal with 1. Problem : TCP Sequence Number Approximation Vulnerability Solution : _Enable TCP MD5 Signature 2. Problem : HTTP Basic Authentication Enable Solution : _ Use... (5 Replies)
Discussion started by: bobochacha29
5 Replies

8. Shell Programming and Scripting

Fixing a shell script

I have this shell script that I wrote to check an input file to see if it is empty or not, and then clean the file from any line that starts with the sign "<" (without quotation marks" and then spell the number of line of the file, and the empty lines, too. The script then will create two output... (11 Replies)
Discussion started by: faizlo
11 Replies

9. UNIX for Advanced & Expert Users

Help with fixing screen position

Hey guys, I am trying to make print a pattern with * on a 10*10 two dimensional array in a for loop and I want the incoming 10*10 to overlap the previous 10*10 so that the * look like it is moving. is there a way to fix the screen position? ever time it prints a 10*10 the screen moves. ... (3 Replies)
Discussion started by: amit14august
3 Replies
XSYSINFO(1x)							 Debian GNU/Linux						      XSYSINFO(1x)

NAME
xsysinfo - Display Linux kernel parameters in graphical form SYNOPSIS
xsysinfo [-help] [-update n] [-[no]title] [-[no]labels] [-[no]loadavg] [-[no]load] [-[no]mem] [-[no]swap] [-[no]smp] DESCRIPTION
Xsysinfo is an X application to display some Linux kernel parameters in graphical form. It is like a mix of top, free and xload with the difference that the values are shown in form of a horizontal bar. The displayed values are: CPU load average, CPU load, memory and swap sizes (details see below). OPTIONS
-update n Set update rate to n milli-seconds -title Show title string -notitle Don't show title string -labels Show gauge labels -nolabels Don't show gauge labels -loadavg Show CPU load average value -noloadavg Don't show CPU load average value -load Show CPU load value -noload Don't show CPU load value -smp Show separate SMP loads -nosmp Don't show separate SMP loads. -mem Show memory info -nomem Don't show memory info -swap Show swap info -noswap Don't show swap info -help Display options DISPLAY
Xsysinfo display the following values: CPU load average CPU load average between 0.000-8.000. The gauge's bar is subdivided into segments, where one segment represents a load value of 1.0. The bar's full length is automatically scaled, depending on the displayed value. CPU load percentage CPU load time to CPU idle time subdivided in three segments: user load, system load and nice load. On an SMP system the -smp option replaces the single total load meter with a separate meter for each processor. Memory The memory gauge's bar is subdivided into two segments with the amount of physical memory, which is used by processes on the left and physical memory used for the page and buffer cache on the right. The length of the whole bar, which is the sum of these two val- ues, shows the amount of physical memory currently used by the system. Swap The percentage of swap space used by the system to total amount of swap space. AUTHORS
Xsyinfo is written by Gabor Herr <herr@iti.informatik.th-darmstadt.de> and currently maintained by Ronald Wahl <ronald.wahl@informatik.tu- chemnitz.de>. This manual page was created by Roland Rosenfeld <roland@spinnaker.de> for the Debian GNU/Linux system (but may be used by others). Debian Project December 2005 XSYSINFO(1x)
All times are GMT -4. The time now is 04:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy