jotã³ãã³ãã«ã¤ãã¦èª¿ã¹ã¦ã¿ã
æ¬æ¥ã®ã·ã§ã«è¸åå¼·ä¼(http://usptomo.doorkeeper.jp/events/8339)ã®ä¸ã§ãã話é¡ã«ãªã£ãjotã³ãã³ãã
ã¤ãã¤ã使ãæ¹ãã¡ããã¨ææ¡ãã¦ããªãã£ãã®ã§èª¿ã¹ã¦ã¿ã¾ããã
â»ç¢ºèªã»æ¤è¨¼ã¯FreeBSD 8.3ã«ã¦ãããªã£ã¦ããã¾ããã
å½æã®èªè
jot åæ° éå§ çµç«¯
#ã·ã§ã«è¸ #usptomo
— ããã㨠(@kunst1080) 2014, 2æ 15
調ã¹ã¦ã¿ãçµæãããªã便å©ãªã³ãã³ãã®ããã§ããseq + yesã¿ãããªæãããªã
man jot
JOT(1) FreeBSD General Commands Manual JOT(1) NAME jot ? print sequential or random data SYNOPSIS jot [-cnr] [-b word] [-w word] [-s string] [-p precision] [reps [begin [end [s]]]] DESCRIPTION The jot utility is used to print out increasing, decreasing, random, or redundant data, usually numbers, one per line.
以ä¸ç¥ï¼
åºæ¬çãªæ§æ
jot åæ° éå§ çµäº
ã§ãéå§ã¨çµäºã¯çç¥å¯è½ã
- åæ°ã®ã¿æå®
% jot 5 1 2 3 4 5
- åæ°ã¨éå§ãæå®
% jot 5 10 10 11 12 13 14
- åæ°ã»éå§ã»çµäºãæå®
% jot 5 6 10 6 7 8 9 10
- åæ°ã»éå§ã»çµäºãé£ç¶ããªãå ´åãåæ°ã«åããã¦å²ãç®ãã¦ãããæãã
% jot 5 2 10 2 4 6 8 10
- åæ°ã«0ãæå®ããã¨ç¡éã«åºå(yesã¿ãããªã)
% jot 0 | head 1 2 3 4 5 6
% jot -b a 0 | head a a a a a a a a a a
jotã³ãã³ãã®ãªãã·ã§ã³
-rãªãã·ã§ã³
- ä¹±æ°ãä½æ
% jot -r 3 80 8 97
- 1000ï½2000ã®éã®ä¹±æ°ã3ã¤
% jot -r 3 1000 2000 1235 1172 1404
-bãªãã·ã§ã³
æåãç¹°ãè¿ãåºå
% jot -b PIZA 3 PIZA PIZA PIZA
-wãªãã·ã§ã³
- printf風ã®ãã©ã¼ãããæå®ãä»ãããã
% jot -w %03d 3 001 002 003
-wãªãã·ã§ã³
- -w %c ã¨åããçæãããæ°åãã¢ã¹ãã¼ã³ã¼ãã¨ãã¦æåãåºåãã
% jot -c 3 65 67 A B C
-sãªãã·ã§ã³
- åºåãæåãå¤æ´ãããæå®ããªãå ´åã¯æ¹è¡ã³ã¼ãã
% jot -s , 10 1,2,3,4,5,6,7,8,9,10
- ä»ã®ãªãã·ã§ã³ã¨çµã¿åãã
% jot -s , -w %03d 10 001,002,003,004,005,006,007,008,009,010
-nãªãã·ã§ã³
æ¹è¡ã³ã¼ããåºåããªã
% jot -n 3 1 2 3%
% jot -n -s , 3 1,2,3%
-pãªãã·ã§ã³
æ´æ°ã§æå®ããããã¼ã¿ã®æåæ°ãããã¯æ¡æ°ã ã表示
- åºå対象ãæ°åã®å ´å
% jot -p 2 4 8 11 8.00 9.00 10.00 11.00
- -wãªãã·ã§ã³ã¨çµã¿åãããå ´åã-wãåã¤
% jot -p 2 -w %03d 3 001 002 003
ãã®ä»
- éå§ã»çµäºçã¯ãæåã§ãæå®å¯è½
% jot 3 a c 97 98 99
% jot -c 3 a c a b c
- ã©ã³ãã ãªæååãçæ
% jot -r -c 40 a z | rs -g 0 8 mnuqpxzx ortfkjnd xjllnkpj zjghdayl qpzjihai
åèURL
ããã®ã使ç¨ä¾ãããããåèã«ãªãã¾ãã