Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.222
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby19 /
share /
ri /
1.9.1 /
system /
Kernel /
Delete
Unzip
Name
Size
Permission
Date
Action
%60-i.ri
620
B
-rw-r--r--
2023-07-26 17:26
Array-i.ri
441
B
-rw-r--r--
2023-07-26 17:26
BigDecimal-i.ri
171
B
-rw-r--r--
2023-07-26 17:26
Complex-i.ri
235
B
-rw-r--r--
2023-07-26 17:26
Float-i.ri
551
B
-rw-r--r--
2023-07-26 17:26
Integer-i.ri
1.13
KB
-rw-r--r--
2023-07-26 17:26
JSON-i.ri
565
B
-rw-r--r--
2023-07-26 17:26
Pathname-i.ri
302
B
-rw-r--r--
2023-07-26 17:26
Rational-i.ri
237
B
-rw-r--r--
2023-07-26 17:26
String-i.ri
475
B
-rw-r--r--
2023-07-26 17:26
URI-c.ri
224
B
-rw-r--r--
2023-07-26 17:26
URI-i.ri
224
B
-rw-r--r--
2023-07-26 17:26
__callee__-i.ri
365
B
-rw-r--r--
2023-07-26 17:26
__method__-i.ri
365
B
-rw-r--r--
2023-07-26 17:26
abort-i.ri
399
B
-rw-r--r--
2023-07-26 17:26
at_exit-i.ri
735
B
-rw-r--r--
2023-07-26 17:26
autoload%3f-i.ri
422
B
-rw-r--r--
2023-07-26 17:26
autoload-i.ri
523
B
-rw-r--r--
2023-07-26 17:26
binding-i.ri
650
B
-rw-r--r--
2023-07-26 17:26
block_given%3f-i.ri
716
B
-rw-r--r--
2023-07-26 17:26
callcc-i.ri
843
B
-rw-r--r--
2023-07-26 17:26
caller-i.ri
1.08
KB
-rw-r--r--
2023-07-26 17:26
catch-i.ri
1.21
KB
-rw-r--r--
2023-07-26 17:26
cdesc-Kernel.ri
2.01
KB
-rw-r--r--
2023-07-26 17:26
chomp-i.ri
389
B
-rw-r--r--
2023-07-26 17:26
chop-i.ri
380
B
-rw-r--r--
2023-07-26 17:26
eval-i.ri
857
B
-rw-r--r--
2023-07-26 17:26
exec-i.ri
2.04
KB
-rw-r--r--
2023-07-26 17:26
exit%21-i.ri
442
B
-rw-r--r--
2023-07-26 17:26
exit-i.ri
1.36
KB
-rw-r--r--
2023-07-26 17:26
fail-i.ri
1.06
KB
-rw-r--r--
2023-07-26 17:26
fork-i.ri
1.17
KB
-rw-r--r--
2023-07-26 17:26
format-i.ri
12.75
KB
-rw-r--r--
2023-07-26 17:26
gem-i.ri
1.44
KB
-rw-r--r--
2023-07-26 17:26
gem_original_require-i.ri
280
B
-rw-r--r--
2023-07-26 17:26
gets-i.ri
1.44
KB
-rw-r--r--
2023-07-26 17:26
global_variables-i.ri
408
B
-rw-r--r--
2023-07-26 17:26
gsub-i.ri
428
B
-rw-r--r--
2023-07-26 17:26
iterator%3f-i.ri
710
B
-rw-r--r--
2023-07-26 17:26
j-i.ri
281
B
-rw-r--r--
2023-07-26 17:26
jj-i.ri
297
B
-rw-r--r--
2023-07-26 17:26
lambda-i.ri
343
B
-rw-r--r--
2023-07-26 17:26
load-i.ri
722
B
-rw-r--r--
2023-07-26 17:26
local_variables-i.ri
442
B
-rw-r--r--
2023-07-26 17:26
loop-i.ri
582
B
-rw-r--r--
2023-07-26 17:26
open-c.ri
4.2
KB
-rw-r--r--
2023-07-26 17:26
open-i.ri
4.19
KB
-rw-r--r--
2023-07-26 17:26
open_uri_original_open-c.ri
185
B
-rw-r--r--
2023-07-26 17:26
open_uri_original_open-i.ri
184
B
-rw-r--r--
2023-07-26 17:26
p-i.ri
583
B
-rw-r--r--
2023-07-26 17:26
pp-c.ri
273
B
-rw-r--r--
2023-07-26 17:26
pp-i.ri
273
B
-rw-r--r--
2023-07-26 17:26
pretty_inspect-i.ri
238
B
-rw-r--r--
2023-07-26 17:26
print-i.ri
885
B
-rw-r--r--
2023-07-26 17:26
printf-i.ri
426
B
-rw-r--r--
2023-07-26 17:26
proc-i.ri
248
B
-rw-r--r--
2023-07-26 17:26
psych_y-i.ri
193
B
-rw-r--r--
2023-07-26 17:26
putc-i.ri
387
B
-rw-r--r--
2023-07-26 17:26
puts-i.ri
305
B
-rw-r--r--
2023-07-26 17:26
raise-i.ri
1.06
KB
-rw-r--r--
2023-07-26 17:26
rand-i.ri
1.22
KB
-rw-r--r--
2023-07-26 17:26
readline-i.ri
380
B
-rw-r--r--
2023-07-26 17:26
readlines-i.ri
404
B
-rw-r--r--
2023-07-26 17:26
require-i.ri
1.65
KB
-rw-r--r--
2023-07-26 17:26
require_relative-i.ri
466
B
-rw-r--r--
2023-07-26 17:26
scanf-i.ri
418
B
-rw-r--r--
2023-07-26 17:26
select-i.ri
1.82
KB
-rw-r--r--
2023-07-26 17:26
set_trace_func-i.ri
1.86
KB
-rw-r--r--
2023-07-26 17:26
sleep-i.ri
815
B
-rw-r--r--
2023-07-26 17:26
spawn-i.ri
11.41
KB
-rw-r--r--
2023-07-26 17:26
sprintf-i.ri
12.75
KB
-rw-r--r--
2023-07-26 17:26
srand-i.ri
754
B
-rw-r--r--
2023-07-26 17:26
sub-i.ri
433
B
-rw-r--r--
2023-07-26 17:26
syscall-i.ri
1.45
KB
-rw-r--r--
2023-07-26 17:26
system-i.ri
1.31
KB
-rw-r--r--
2023-07-26 17:26
test-i.ri
3.01
KB
-rw-r--r--
2023-07-26 17:26
throw-i.ri
543
B
-rw-r--r--
2023-07-26 17:26
trace_var-i.ri
944
B
-rw-r--r--
2023-07-26 17:26
trap-i.ri
1.45
KB
-rw-r--r--
2023-07-26 17:26
untrace_var-i.ri
486
B
-rw-r--r--
2023-07-26 17:26
warn-i.ri
340
B
-rw-r--r--
2023-07-26 17:26
y-i.ri
161
B
-rw-r--r--
2023-07-26 17:26
Save
Rename
U:RDoc::AnyMethod[iI"sprintf:ETI"Kernel#sprintf;FF:publico:RDoc::Markup::Document:@parts[&o:RDoc::Markup::Paragraph; [I"GReturns the string resulting from applying <i>format_string</i> to;FI"Hany additional arguments. Within the format string, any characters;FI":other than format sequences are copied to the result.;Fo:RDoc::Markup::BlankLine o; ; [I"0The syntax of a format sequence is follows.;F@o:RDoc::Markup::Verbatim; [I"%%[flags][width][.precision]type ;Fo; ; [I" A format;FI"Esequence consists of a percent sign, followed by optional flags,;FI"Gwidth, and precision indicators, then terminated with a field type;FI">character. The field type controls how the corresponding;FI"H<code>sprintf</code> argument is to be interpreted, while the flags;FI" modify that interpretation.;F@o; ; [I"#The field type characters are:;F@o;; [6I"Field | Integer Format ;FI"K------+-------------------------------------------------------------- ;FI"2 b | Convert argument as a binary number. ;FI"F | Negative numbers will be displayed as a two's complement ;FI"" | prefixed with `..1'. ;FI"D B | Equivalent to `b', but uses an uppercase 0B for prefix ;FI"- | in the alternative format by #. ;FI"3 d | Convert argument as a decimal number. ;FI" i | Identical to `d'. ;FI"2 o | Convert argument as an octal number. ;FI"F | Negative numbers will be displayed as a two's complement ;FI"" | prefixed with `..7'. ;FI" u | Identical to `d'. ;FI"7 x | Convert argument as a hexadecimal number. ;FI"F | Negative numbers will be displayed as a two's complement ;FI"E | prefixed with `..f' (representing an infinite string of ;FI" | leading 'ff's). ;FI"< X | Equivalent to `x', but uses uppercase letters. ;FI" ;FI"Field | Float Format ;FI"K------+-------------------------------------------------------------- ;FI"G e | Convert floating point argument into exponential notation ;FI"L | with one digit before the decimal point as [-]d.dddddde[+-]dd. ;FI"L | The precision specifies the number of digits after the decimal ;FI"( | point (defaulting to six). ;FI"D E | Equivalent to `e', but uses an uppercase E to indicate ;FI" | the exponent. ;FI"? f | Convert floating point argument as [-]ddd.dddddd, ;FI"F | where the precision specifies the number of digits after ;FI" | the decimal point. ;FI"D g | Convert a floating point number using exponential form ;FI"@ | if the exponent is less than -4 or greater than or ;FI"C | equal to the precision, or in dd.dddd form otherwise. ;FI"G | The precision specifies the number of significant digits. ;FI"K G | Equivalent to `g', but use an uppercase `E' in exponent form. ;FI"D a | Convert floating point argument as [-]0xh.hhhhp[+-]dd, ;FI"H | which is consisted from optional sign, "0x", fraction part ;FI"C | as hexadecimal, "p", and exponential part as decimal. ;FI"? A | Equivalent to `a', but use uppercase `X' and `P'. ;FI" ;FI"Field | Other Format ;FI"K------+-------------------------------------------------------------- ;FI"D c | Argument is the numeric code for a single character or ;FI"/ | a single character string itself. ;FI". p | The valuing of argument.inspect. ;FI"D s | Argument is a string to be substituted. If the format ;FI"I | sequence contains a precision, at most that many characters ;FI" | will be copied. ;FI"J % | A percent sign itself will be displayed. No argument taken. ;Fo; ; [I"4The flags modifies the behavior of the formats.;FI"The flag characters are:;F@o;; [/I"(Flag | Applies to | Meaning ;FI"I---------+---------------+----------------------------------------- ;FI">space | bBdiouxX | Leave a space at the start of ;FI"6 | aAeEfgG | non-negative numbers. ;FI"D | (numeric fmt) | For `o', `x', `X', `b' and `B', use ;FI"E | | a minus sign with absolute value for ;FI"1 | | negative values. ;FI"I---------+---------------+----------------------------------------- ;FI"G(digit)$ | all | Specifies the absolute argument number ;FI"G | | for this field. Absolute and relative ;FI"F | | argument numbers cannot be mixed in a ;FI"0 | | sprintf string. ;FI"I---------+---------------+----------------------------------------- ;FI"; # | bBoxX | Use an alternative format. ;FI"P | aAeEfgG | For the conversions `o', increase the precision ;FI"E | | until the first digit will be `0' if ;FI"D | | it is not formatted as complements. ;FI"J | | For the conversions `x', `X', `b' and `B' ;FI"L | | on non-zero, prefix the result with ``0x'', ;FI"I | | ``0X'', ``0b'' and ``0B'', respectively. ;FI"K | | For `a', `A', `e', `E', `f', `g', and 'G', ;FI"C | | force a decimal point to be added, ;FI": | | even if no digits follow. ;FI"O | | For `g' and 'G', do not remove trailing zeros. ;FI"I---------+---------------+----------------------------------------- ;FI"H+ | bBdiouxX | Add a leading plus sign to non-negative ;FI") | aAeEfgG | numbers. ;FI"D | (numeric fmt) | For `o', `x', `X', `b' and `B', use ;FI"E | | a minus sign with absolute value for ;FI"1 | | negative values. ;FI"I---------+---------------+----------------------------------------- ;FI"L- | all | Left-justify the result of this conversion. ;FI"I---------+---------------+----------------------------------------- ;FI"<0 (zero) | bBdiouxX | Pad with zeros, not spaces. ;FI"H | aAeEfgG | For `o', `x', `X', `b' and `B', radix-1 ;FI"J | (numeric fmt) | is used for negative numbers formatted as ;FI"- | | complements. ;FI"I---------+---------------+----------------------------------------- ;FI"J* | all | Use the next argument as the field width. ;FI"M | | If negative, left-justify the result. If the ;FI"N | | asterisk is followed by a number and a dollar ;FI"O | | sign, use the indicated argument as the width. ;Fo; ; [I"Examples of flags:;F@o;; [:I"F# `+' and space flag specifies the sign of non-negative numbers. ;FI"#sprintf("%d", 123) #=> "123" ;FI"$sprintf("%+d", 123) #=> "+123" ;FI"$sprintf("% d", 123) #=> " 123" ;FI" ;FI"@# `#' flag for `o' increases number of digits to show `0'. ;FI"># `+' and space flag changes format of negative numbers. ;FI"$sprintf("%o", 123) #=> "173" ;FI"%sprintf("%#o", 123) #=> "0173" ;FI"%sprintf("%+o", -123) #=> "-173" ;FI"'sprintf("%o", -123) #=> "..7605" ;FI"'sprintf("%#o", -123) #=> "..7605" ;FI" ;FI"@# `#' flag for `x' add a prefix `0x' for non-zero numbers. ;FI"E# `+' and space flag disables complements for negative numbers. ;FI"#sprintf("%x", 123) #=> "7b" ;FI"%sprintf("%#x", 123) #=> "0x7b" ;FI"$sprintf("%+x", -123) #=> "-7b" ;FI"&sprintf("%x", -123) #=> "..f85" ;FI"(sprintf("%#x", -123) #=> "0x..f85" ;FI""sprintf("%#x", 0) #=> "0" ;FI" ;FI")# `#' for `X' uses the prefix `0X'. ;FI""sprintf("%X", 123) #=> "7B" ;FI"$sprintf("%#X", 123) #=> "0X7B" ;FI" ;FI"@# `#' flag for `b' add a prefix `0b' for non-zero numbers. ;FI"E# `+' and space flag disables complements for negative numbers. ;FI"(sprintf("%b", 123) #=> "1111011" ;FI"*sprintf("%#b", 123) #=> "0b1111011" ;FI")sprintf("%+b", -123) #=> "-1111011" ;FI"+sprintf("%b", -123) #=> "..10000101" ;FI"-sprintf("%#b", -123) #=> "0b..10000101" ;FI""sprintf("%#b", 0) #=> "0" ;FI" ;FI")# `#' for `B' uses the prefix `0B'. ;FI"'sprintf("%B", 123) #=> "1111011" ;FI")sprintf("%#B", 123) #=> "0B1111011" ;FI" ;FI"5# `#' for `e' forces to show the decimal point. ;FI"%sprintf("%.0e", 1) #=> "1e+00" ;FI"&sprintf("%#.0e", 1) #=> "1.e+00" ;FI" ;FI"5# `#' for `f' forces to show the decimal point. ;FI"'sprintf("%.0f", 1234) #=> "1234" ;FI"(sprintf("%#.0f", 1234) #=> "1234." ;FI" ;FI"5# `#' for `g' forces to show the decimal point. ;FI"0# It also disables stripping lowest zeros. ;FI"(sprintf("%g", 123.4) #=> "123.4" ;FI"*sprintf("%#g", 123.4) #=> "123.400" ;FI")sprintf("%g", 123456) #=> "123456" ;FI"*sprintf("%#g", 123456) #=> "123456." ;Fo; ; [I"EThe field width is an optional integer, followed optionally by a;FI"Gperiod and a precision. The width specifies the minimum number of;FI"Bcharacters that will be written to the result for this field.;F@o; ; [I"Examples of width:;F@o;; [I"1# padding is done by spaces, width=20 ;FI"6# 0 or radix-1. <------------------> ;FI"7sprintf("%20d", 123) #=> " 123" ;FI"7sprintf("%+20d", 123) #=> " +123" ;FI"7sprintf("%020d", 123) #=> "00000000000000000123" ;FI"7sprintf("%+020d", 123) #=> "+0000000000000000123" ;FI"7sprintf("% 020d", 123) #=> " 0000000000000000123" ;FI"7sprintf("%-20d", 123) #=> "123 " ;FI"7sprintf("%-+20d", 123) #=> "+123 " ;FI"7sprintf("%- 20d", 123) #=> " 123 " ;FI"7sprintf("%020x", -123) #=> "..ffffffffffffffff85" ;Fo; ; [I"For;FI"Hnumeric fields, the precision controls the number of decimal places;FI"Hdisplayed. For string fields, the precision determines the maximum;FI"Jnumber of characters to be copied from the string. (Thus, the format;FI"Esequence <code>%10.10s</code> will always contribute exactly ten;FI"characters to the result.);F@o; ; [I"Examples of precisions:;F@o;; [-I".# precision for `d', 'o', 'x' and 'b' is ;FI"7# minimum number of digits <------> ;FI"8sprintf("%20.8d", 123) #=> " 00000123" ;FI"8sprintf("%20.8o", 123) #=> " 00000173" ;FI"8sprintf("%20.8x", 123) #=> " 0000007b" ;FI"8sprintf("%20.8b", 123) #=> " 01111011" ;FI"8sprintf("%20.8d", -123) #=> " -00000123" ;FI"8sprintf("%20.8o", -123) #=> " ..777605" ;FI"8sprintf("%20.8x", -123) #=> " ..ffff85" ;FI"8sprintf("%20.8b", -11) #=> " ..110101" ;FI" ;FI":# "0x" and "0b" for `#x' and `#b' is not counted for ;FI"8# precision but "0" for `#o' is counted. <------> ;FI"9sprintf("%#20.8d", 123) #=> " 00000123" ;FI"9sprintf("%#20.8o", 123) #=> " 00000173" ;FI"9sprintf("%#20.8x", 123) #=> " 0x0000007b" ;FI"9sprintf("%#20.8b", 123) #=> " 0b01111011" ;FI"9sprintf("%#20.8d", -123) #=> " -00000123" ;FI"9sprintf("%#20.8o", -123) #=> " ..777605" ;FI"9sprintf("%#20.8x", -123) #=> " 0x..ffff85" ;FI"9sprintf("%#20.8b", -11) #=> " 0b..110101" ;FI" ;FI"&# precision for `e' is number of ;FI"9# digits after the decimal point <------> ;FI">sprintf("%20.8e", 1234.56789) #=> " 1.23456789e+03" ;FI" ;FI"&# precision for `f' is number of ;FI"=# digits after the decimal point <------> ;FI">sprintf("%20.8f", 1234.56789) #=> " 1234.56789000" ;FI" ;FI"&# precision for `g' is number of ;FI"=# significant digits <-------> ;FI">sprintf("%20.8g", 1234.56789) #=> " 1234.5679" ;FI" ;FI"9# <-------> ;FI">sprintf("%20.8g", 123456789) #=> " 1.2345679e+08" ;FI" ;FI"# precision for `s' is ;FI"@# maximum number of characters <------> ;FI"Asprintf("%20.8s", "string test") #=> " string t" ;Fo; ; [I"Examples:;F@o;; [I"?sprintf("%d %04x", 123, 123) #=> "123 007b" ;FI"Fsprintf("%08b '%4s'", 123, 123) #=> "01111011 ' 123'" ;FI"Gsprintf("%1$*2$s %2$d %1$s", "hello", 8) #=> " hello 8 hello" ;FI"Bsprintf("%1$*2$s %2$d", "hello", -8) #=> "hello -8" ;FI"Gsprintf("%+g:% g:%-g", 1.23, 1.23, 1.23) #=> "+1.23: 1.23:1.23" ;FI";sprintf("%u", -123) #=> "-123" ;Fo; ; [I"DFor more complex formatting, Ruby supports a reference by name.;FI"A%<name>s style uses format style, but %{name} style doesn't.;F@o; ; [I"Exapmles:;Fo;; [ I"<sprintf("%<foo>d : %<bar>f", { :foo => 1, :bar => 2 }) ;FI" #=> 1 : 2.000000 ;FI"'sprintf("%{foo}f", { :foo => 1 }) ;FI" # => "1f";F: @file0I"nformat(format_string [, arguments...] ) -> string sprintf(format_string [, arguments...] ) -> string ;F0[ I"(*args);FI" object.c;T