Sponsored Content
Top Forums Shell Programming and Scripting Awk+colpos+negative if for 20 values Post 302909998 by rajubollas on Monday 21st of July 2014 11:44:46 PM
Old 07-22-2014
Hi Don,

i have given control files data not the actual files data as it is huge in size.
here i am attaching one sample for your reference.
i have modified file extension *.txt as was unable to upload control files
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help in adding positive & negative values in a column

Hi Gurus, In my file I have an amount field from position 74 to 87, which contains values starting with '+' as well as '-'. I want to add all positive values in a varible called "CREDIT" and all negative values in a variable "DEBIT". I know, we can use grep to identify values with positive and... (4 Replies)
Discussion started by: berlin_germany
4 Replies

2. Shell Programming and Scripting

printf in bash shell not printing negative values

hi i am using printf in a script and it is not printing negative values..i have to use printf to get rid of the newline..here is my code: fin=`echo $a - $b | bc` printf "${fin}," >> test these statements are in a loop. here is what i get when i try to subtract 4 from 8: ./scr1: line... (2 Replies)
Discussion started by: npatwardhan
2 Replies

3. Shell Programming and Scripting

Sorting positive and negative values

Hello, I have a list like this : 1 2 -4 0 -3 -7 5 6 etc. Is there a way to remove all the positive values and print only the negative values, without using grep, sed or awk? Thanks, Prasanna (4 Replies)
Discussion started by: prasanna1157
4 Replies

4. Shell Programming and Scripting

Find Where Values Change From Positive To Negative and viceversa

Hi all, I have a file that looks like shown below. I want to find places where the value in column 2 change from negative to positive and vice versa and return the value on column 1 at that point. I wonder if this is possible in shell script or awk .. please help! Here is the original data ... (6 Replies)
Discussion started by: malandisa
6 Replies

5. UNIX for Dummies Questions & Answers

Snmp Disk Problem = Negative Values

Ok, so i monitor disk space on remote machines using snmp. Works great for me. But whenever a particular partition happens to have Terabytes of data, snmp starts reporting negative values. Can someone please tell me how to get around this problem? The AllocationUnit is 512 bytes. Weird... (0 Replies)
Discussion started by: SkySmart
0 Replies

6. Shell Programming and Scripting

error- multiplying negative decimal values

a=10.02 pattern=-11.01 b=$(echo | awk '{ print $a*$pattern}') echo $b its not working even ALso tried `expr $a \* $pattern` No LUCK (3 Replies)
Discussion started by: saluja.deepak
3 Replies

7. Shell Programming and Scripting

replacing negative values in a column with zero

Hi, i need help on replacing negative values in a column with 0. any quick fix on this? thanks much. for instance, input: 1 2.3 -0.4 -25 12 13 45 -12 desired output 1 2.3 0 0 12 13 45 (4 Replies)
Discussion started by: ida1215
4 Replies

8. Shell Programming and Scripting

Conavert negative values to Zeros

Can anyone please assist me? Please find the attached input and output file for ur reference. a)Incase if i get negative value (ex:-000100) in the 11th column then i have to convert the value to 0000000(7 zeros-length is 7) and then print the entire record. b)Incase if there is no... (2 Replies)
Discussion started by: vinus
2 Replies

9. Shell Programming and Scripting

How to sum the value with negative values?

Hi Gurus, I have requirement need to sum the value, the logic is if the value is negative then time -1, I tried below two ways. one is failed, another one doesn't work. awk -F"," '{if($8< 0 $8*-1 else $8) sum+=$8}{print sum, $8} END{printf("%.2f\n",sum)}' awk -F","... (4 Replies)
Discussion started by: ken6503
4 Replies
dpkg-genchanges(1)						    dpkg suite							dpkg-genchanges(1)

NAME
dpkg-genchanges - generate Debian .changes files SYNOPSIS
dpkg-genchanges [option...] DESCRIPTION
dpkg-genchanges reads information from an unpacked and built Debian source tree and from the files it has generated and generates a Debian upload control file (.changes file). OPTIONS
--build=type Specifies the build type from a comma-separated list of components (since dpkg 1.18.5). The allowed values are: source Upload the source package. any Upload the architecture specific binary packages. all Upload the architecture independent binary packages. binary Upload the architecture specific and independent binary packages. This is an alias for any,all. full Upload everything. This is alias for source,any,all, and the same as the default case when no build option is specified. -g Equivalent to --build=source,all (since dpkg 1.17.11). -G Equivalent to --build=source,any (since dpkg 1.17.11). -b Equivalent to --build=binary or --build=any,all. -B Equivalent to --build=any. -A Equivalent to --build=all. -S Equivalent to --build=source. The -sx options control whether the original source archive is included in the upload if any source is being generated (i.e. -b or -B haven't been used). -si By default, or if specified, the original source will be included only if the upstream version number (the version without epoch and without Debian revision) differs from the upstream version number of the previous changelog entry. -sa Forces the inclusion of the original source. -sd Forces the exclusion of the original source and includes only the diff. -vversion Causes changelog information from all versions strictly later than version to be used. -Cchanges-description Read the description of the changes from the file changes-description rather than using the information from the source tree's changelog file. -mmaintainer-address Use maintainer-address as the name and email address of the maintainer for this package, rather than using the information from the source tree's control file. -emaintainer-address Use maintainer-address as the name and email address of the maintainer for this upload, rather than using the information from the source tree's changelog. -Vname=value Set an output substitution variable. See deb-substvars(5) for a discussion of output substitution. -Tsubstvars-file Read substitution variables in substvars-file; the default is debian/substvars. No variable substitution is done on any of the fields that are output, except for the contents extracted from each binary package Description field (since dpkg 1.19.0), however the special variable Format will override the field of the same name. This option can be used multiple times to read substitution variables from multiple files (since dpkg 1.15.6). -Dfield=value Override or add an output control file field. -Ufield Remove an output control file field. -ccontrolfile Specifies the main source control file to read information from. The default is debian/control. -lchangelog-file Specifies the changelog file to read information from. The default is debian/changelog. -ffiles-list-file Read the list of files to be uploaded here, rather than using debian/files. -Fchangelog-format Specifies the format of the changelog. See dpkg-parsechangelog(1) for information about alternative formats. -uupload-files-dir Look for the files to be uploaded in upload-files-dir rather than .. (dpkg-genchanges needs to find these files so that it can include their sizes and checksums in the .changes file). -q Usually dpkg-genchanges will produce informative messages on standard error, for example about how many of the package's source files are being uploaded. -q suppresses these messages. -O[filename] Print the changes file to standard output (the default) or to filename if specified (since dpkg 1.18.5). -?, --help Show the usage message and exit. --version Show the version and exit. FILES
debian/files The list of generated files which are part of the upload being prepared. dpkg-genchanges reads the data here when producing a .changes file. SEE ALSO
deb-substvars(5), deb-src-control(5), deb-src-files(5), deb-changelog(5), deb-changes(5). 1.19.0.5 2018-04-16 dpkg-genchanges(1)
All times are GMT -4. The time now is 12:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy