8 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I need to pad 0 to a number on the right. to make it 9 digit in total.
My number is 2457
output should be 245700000
Please do wrap your samples/codes into CODE TAGS as per forum rules. (3 Replies)
Discussion started by: varun22486
3 Replies
2. Shell Programming and Scripting
I have number/strings like below
input =23412133
output = 234121330000 (depends on the number give at runtime)
i need to padd zeros based on runtime input . i tried below
printf ' %d%04d\n', "23412133";
But the precision 4 is static here how can i pass this as runtime input.
i am... (11 Replies)
Discussion started by: greenworld123
11 Replies
3. Programming
I need to right-pad with zeros a string by using (s)printf.
I looked up the manual and tried with
printf("%-19s", buffer);
which right-pad the string with spaces. So I tried
printf("%019s", buffer);
which left-pad the string with zeros. So I tried both
printf("%-019s", buffer);... (9 Replies)
Discussion started by: emitrax
9 Replies
4. UNIX for Dummies Questions & Answers
Hi All
I need a pad a . to befoure a last digi
ex 1258 --> 125.8
help to do
thanks (4 Replies)
Discussion started by: nalakaatslt
4 Replies
5. UNIX for Dummies Questions & Answers
Hi can I know command to pad Zeros to a value
I get 16 and I need to send 0000000016 (5 Replies)
Discussion started by: mgirinath
5 Replies
6. Solaris
Hi,
I'm on a sunos SVR4.0 box, my number pad works on the command line but does not work in vi any ideas how to enable it under vi?
Thanks (5 Replies)
Discussion started by: c19h28O2
5 Replies
7. Shell Programming and Scripting
Hello,
I have to write a function to input a Label and a number, and output a line as the following format:
Column 1 to 30: field label, left justified.
Column 31 to 45: A number, right justified.
The middle is padded with space. May I know how can I achieve this? (I don't know how to count... (3 Replies)
Discussion started by: sarahho
3 Replies
8. UNIX for Dummies Questions & Answers
Is there anyway to use the fr*$%& number pad in VI?
Anyway? Anyway at all?
All it does now random movements and inserts of characters (2 Replies)
Discussion started by: nelsonenzo
2 Replies
GIT-INSTAWEB(1) Git Manual GIT-INSTAWEB(1)
NAME
git-instaweb - Instantly browse your working repository in gitweb
SYNOPSIS
git instaweb [--local] [--httpd=<httpd>] [--port=<port>]
[--browser=<browser>]
git instaweb [--start] [--stop] [--restart]
DESCRIPTION
A simple script to set up gitweb and a web server for browsing the local repository.
OPTIONS
-l, --local
Only bind the web server to the local IP (127.0.0.1).
-d, --httpd
The HTTP daemon command-line that will be executed. Command-line options may be specified here, and the configuration file will be
added at the end of the command-line. Currently apache2, lighttpd, mongoose, plackup and webrick are supported. (Default: lighttpd)
-m, --module-path
The module path (only needed if httpd is Apache). (Default: /usr/lib/apache2/modules)
-p, --port
The port number to bind the httpd to. (Default: 1234)
-b, --browser
The web browser that should be used to view the gitweb page. This will be passed to the git web--browse helper script along with the
URL of the gitweb instance. See git-web--browse(1) for more information about this. If the script fails, the URL will be printed to
stdout.
start, --start
Start the httpd instance and exit. Regenerate configuration files as necessary for spawning a new instance.
stop, --stop
Stop the httpd instance and exit. This does not generate any of the configuration files for spawning a new instance, nor does it close
the browser.
restart, --restart
Restart the httpd instance and exit. Regenerate configuration files as necessary for spawning a new instance.
CONFIGURATION
You may specify configuration in your .git/config
[instaweb]
local = true
httpd = apache2 -f
port = 4321
browser = konqueror
modulepath = /usr/lib/apache2/modules
If the configuration variable instaweb.browser is not set, web.browser will be used instead if it is defined. See git-web--browse(1) for
more information about this.
SEE ALSO
gitweb(1)
GIT
Part of the git(1) suite
Git 1.7.10.4 11/24/2012 GIT-INSTAWEB(1)