Sponsored Content
Top Forums Shell Programming and Scripting Chromosomal Bin Size Adjustment Post 302968955 by RudiC on Wednesday 16th of March 2016 12:23:43 PM
Old 03-16-2016
How did you achieve your sample output? Why don't you do a quick calculation of the base count and then use the remainder for the first record?
225 - 100 = 125, 125 mod 10 = 5:
Code:
awk 'BEGIN {print 125%10}'
5

This User Gave Thanks to RudiC For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/bin/sh: /usr/bin/vi: No such file or directory when doing crontab

I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Discussion started by: kwalter
3 Replies

2. HP-UX

How to disable time auto adjustment ??

We do not use ntp.conf file. However time's changed automatically. How can i disbale automatic time adjustment ? Thank you in advance. (6 Replies)
Discussion started by: v838
6 Replies

3. UNIX for Dummies Questions & Answers

fuser: difference with bin/sh and bin/ksh shell script

Hi, I have a problem I don't understand with fuser. I launch a simple shell script mysleep.sh: I launch the command fuser -fu mysleep.sh but fuser doesn't return anything excepted: mysleep: Then I modify my script switching from #!/bin/sh to #!/bin/ksh I launch the command fuser -fu... (4 Replies)
Discussion started by: Peuj
4 Replies

4. Ubuntu

Brightness adjustment

Hi all, I am using Ubuntu 10.04 LTS in Samsung N148. I can't see any option to adjust brightness in System->Preference->monitor. Is there any shell command to adjust brightness ? I have used xgamma -gamma but it change the gamx not brightness. Cheers (7 Replies)
Discussion started by: gvj
7 Replies

5. OS X (Apple)

When to use /Users/m/bin instead of /usr/local/bin (& whats the diff?)?

Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself. But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies

6. Shell Programming and Scripting

awk adjustment to print total

im trying to print all lines in the /var/log/syslog file that contain the pattern CRON. and after all the lines have been printed, i want a total of all the lines that contained "CRON" to be printed at the end. the below command is printing the correct lines, but it is giving me the sum of all... (1 Reply)
Discussion started by: SkySmart
1 Replies

7. Shell Programming and Scripting

Adjustment to current awk statement

Hello all, I have a script that currently works very well but I would like to make a change so that I could prompt for user input for a 2 digit numeric field that would represent the month instead of using the system date for the month. This is my current awk script that Don so graciously... (1 Reply)
Discussion started by: ziggy6
1 Replies

8. AIX

Redistribution bin required for AIX. j7r164redist.7.1.0.25.bin

Hi, I am planning to install a version of Informatica on my AIX box. It requires a specific java build in pap6470_27sr2-20141101_01(SR2). The current link for IBM 64-bit SDK for AIX®, JavaTM Technology Edition, Version 7 Release 1 has a more recent version in j7r164redist.7.1.0.75.bin. Is... (4 Replies)
Discussion started by: meetpraveens
4 Replies

9. Shell Programming and Scripting

Usage of #!/bin/sh vs #!/bin/bash shell scripts?

Some question about the usage of shell scripts: 1.) Are the commands of the base shell scripts a subset of bash commands? 2.) Assume I got a long, long script WITHOUT the first line. How can I find out if the script was originally designed für "sh" or "bash"? 3.) How can I check a given... (3 Replies)
Discussion started by: pstein
3 Replies
Gtk2::Layout(3) 					User Contributed Perl Documentation					   Gtk2::Layout(3)

NAME
Gtk2::Layout HIERARCHY
Glib::Object +----Glib::InitiallyUnowned +----Gtk2::Object +----Gtk2::Widget +----Gtk2::Container +----Gtk2::Layout INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface Gtk2::Buildable METHODS
widget = Gtk2::Layout->new ($hadjustment=undef, $vadjustment=undef) o $hadjustment (Gtk2::Adjustment or undef) o $vadjustment (Gtk2::Adjustment or undef) window or undef = $layout->get_bin_window $layout->freeze adjustment = $layout->get_hadjustment $layout->set_hadjustment ($adjustment) o $adjustment (Gtk2::Adjustment) $layout->move ($child_widget, $x, $y) o $child_widget (Gtk2::Widget) o $x (integer) o $y (integer) $layout->put ($child_widget, $x, $y) o $child_widget (Gtk2::Widget) o $x (integer) o $y (integer) (width, height) = $layout->get_size $layout->set_size ($width, $height) o $width (integer) o $height (integer) $layout->thaw adjustment = $layout->get_vadjustment $layout->set_vadjustment ($adjustment) o $adjustment (Gtk2::Adjustment) PROPERTIES
'hadjustment' (Gtk2::Adjustment : readable / writable / private) The GtkAdjustment for the horizontal position 'height' (Glib::UInt : readable / writable / private) The height of the layout 'vadjustment' (Gtk2::Adjustment : readable / writable / private) The GtkAdjustment for the vertical position 'width' (Glib::UInt : readable / writable / private) The width of the layout SIGNALS
set-scroll-adjustments (Gtk2::Layout, Gtk2::Adjustment, Gtk2::Adjustment) SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.12.1 2010-07-05 Gtk2::Layout(3)
All times are GMT -4. The time now is 07:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy