02-04-2015
This is not what you sort of specified in post#1. And, did you try the proposal?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Experts,
I am adding a column of numbers with awk , however not getting correct output:
# awk '{sum+=$1} END {print sum}' datafile
2.15291e+06
How can I getthe output like : 2152910
Thank you..
# awk '{sum+=$1} END {print sum}' datafile
2.15079e+06 (3 Replies)
Discussion started by: rveri
3 Replies
2. Shell Programming and Scripting
hi guys,
i want to parse a file using public function, the file contain raw data in the below format i want to get the output like this to load it to Oracle DB
MARWA1,BSS:26,1,3,0,0,0,0,0.00,22,22,22.00
MARWA2,BSS:26,1,3,0,0,0,0,0.00,22,22,22.00
this the file raw format:
Number of... (6 Replies)
Discussion started by: dagigg
6 Replies
3. Shell Programming and Scripting
hi i want to find the size of a folder and assign it to a variable and then compare if it is greater than 1 gb.
i am doin this script, but it is throwing error....
#!/bin/ksh
cd . | du -s | size = awk '{print $1}'
if size >= 112000
then
echo size high
fi
ERROR : (4 Replies)
Discussion started by: Nithz
4 Replies
4. Shell Programming and Scripting
Have built this script, the output is what I needed, but NR 6 is omitted. Why? Is it an error? I am using Gawk.
'{nr=$2;f = $1} END{for (i=1;i<=f;i++) if (nr != i) print i, nr }' input1.csv >output1.csvinput1.csv
1 9
3 5
4 1
7 6
8 5
10 6
output1.csv > with the missing line number 6. 6 is... (5 Replies)
Discussion started by: sdf
5 Replies
5. Shell Programming and Scripting
Hi,
How to get correct field/column from autosys autorep command. I'm using GNU/Linux
I'm trying to get the difference of last end and last start and the status (ST).
In awk, i get the following excluding the heading part
$1 - jobname
$2 - Last Start date
$3 - Last Start time
$4 - Last... (1 Reply)
Discussion started by: bobbygsk
1 Replies
6. Shell Programming and Scripting
I'm trying to modify the script given in post 7 of the following thread: 146564-need-parse-jil-file-into-excel-file.html. (Sorry, can't post the URL as I don't have enough posts.)
The original script is as follows:
awk -F ' *_]*: *' 'BEGIN ... (9 Replies)
Discussion started by: GnuScripter
9 Replies
7. Shell Programming and Scripting
Hi Experts,
I am trying to get system output to capture inside awk , but not working:
Please advise if this is possible :
I am trying something like this but not working, the output is coming wrong:
echo "" | awk '{d=system ("date") ; print "Current date is:" , d }'
Thanks, (5 Replies)
Discussion started by: rveri
5 Replies
8. Shell Programming and Scripting
Hi ,
In a directory i've the files in the following format
pay:year:mon:11789604
pay:year:mon:17675644
---
and i need to get 4th part of the above file name
so i used awk command in the below code
#!/bin/ksh
for test_data in pay*
do
txt_awk = awk -F':' '{print $4;}' $test_data
... (7 Replies)
Discussion started by: smile689
7 Replies
9. Shell Programming and Scripting
Hi,
I have a following code in which I am unable to redirect to multiple files. Can anybody please help with some corrections
awk -F, '{ if ( substr($1,26,2)=="02" && substr($1,184,14)=="MTSCC_VALFIRST") {
array1++
array2++
array3++
}
else if (substr($1,26,2)=="03" &&... (4 Replies)
Discussion started by: siramitsharma
4 Replies
10. Shell Programming and Scripting
When I run the awk below, I get an error message
awk -v OFS='\t' '$(NF-1)=="Benign" || ($(NF-2) OFS $(NF-1))=="Likely Benign" {$(NF)=$(NF-2) OFS $(NF-1)} {print $0 }' input
awk: cmd. line:1: (FILENAME=VUS FNR=8) fatal: attempt to access field -1
input
Chr Start End Ref ... (6 Replies)
Discussion started by: cmccabe
6 Replies
LEARN ABOUT OSX
slapo-sssvlv
SLAPO-SSSVLV(5) File Formats Manual SLAPO-SSSVLV(5)
NAME
slapo-sssvlv - Server Side Sorting and Virtual List View overlay to slapd
SYNOPSIS
/etc/openldap/slapd.conf
DESCRIPTION
This overlay implements the LDAP Server Side Sorting (RFC2891) control as well as the Virtual List View control. It also replaces the
default implementation of the LDAP PagedResults (RFC2696) control, to ensure that it works with Sorting. The overlay can be used with any
backend or globally for all backends.
Since a complete result set must be generated in memory before sorting can be performed, processing sort requests can have a large impact
on the server's memory use. As such, any connection is limited to having only a limited number of sort requests active at a time. Addi-
tional limits may be configured as described below.
CONFIGURATION
These slapd.conf options apply to the SSSVLV overlay. They should appear after the overlay directive.
sssvlv-max <num>
Set the maximum number of concurrent sort requests allowed across all connections. The default is one half of the number of server
threads.
sssvlv-maxkeys <num>
Set the maximum number of keys allowed in a sort request. The default is 5.
sssvlv-maxperconn <num>
Set the maximum number of concurrent paged search requests per connection. The default is 5. The number of concurrent requests
remains limited by sssvlv-max.
FILES
/etc/openldap/slapd.conf
default slapd configuration file
/etc/openldap/slapd.d
default slapd configuration directory
SEE ALSO
slapd.conf(5), slapd-config(5).
"OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
IETF LDAP Virtual List View proposal by D. Boreham, J. Sermersheim, and A. Kashi in IETF document "draft-ietf-ldapext-ldapv3-vlv-09.txt".
AUTHOR
Howard Chu
OpenLDAP 2.4.28 2011/11/24 SLAPO-SSSVLV(5)