[20130416]seq命令.txt
[20130416]seq命令.txt
昨天看一些shell指令碼,發現一個命令seq。自己以前從來沒有使用過。
$ rpm -qif `which seq`
Name : coreutils Relocations: (not relocatable)
Version : 5.2.1 Vendor: Red Hat, Inc.
Release : 31.2 Build Date: Mon 20 Jun 2005 07:45:58 PM CST Install Date: Fri 06 Jul 2007
Install Date: Fri 06 Jul 2007 03:30:09 PM CST Build Host: crowe.devel.redhat.com
Group : System Environment/Base Source RPM: coreutils-5.2.1-31.2.src.rpm
Size : 7636028 License: GPL
Signature : DSA/SHA1, Thu 14 Jul 2005 02:52:44 AM CST, Key ID 219180cddb42a60e
Packager : Red Hat, Inc. <
URL : ftp://alpha.gnu.org/gnu/coreutils/
Summary : The GNU core utilities: a set of tools commonly used in shell scripts
Description :
These are the GNU core utilities. This package is the combination of
the old GNU fileutils, sh-utils, and textutils packages.
$ man seq
SEQ(1) User Commands
NAME
seq - print a sequence of numbers
SYNOPSIS
seq [OPTION]... LAST
seq [OPTION]... FIRST LAST
seq [OPTION]... FIRST INCREMENT LAST
DESCRIPTION
Print numbers from FIRST to LAST, in steps of INCREMENT.
-f, --format=FORMAT
use printf style. floating-point FORMAT (default: %g)
-s, --separator=STRING
use STRING to separate numbers (default: \n)
-w, --equal-width
equalize width by padding with leading zeroes
--help display this help and exit
--version
output version information and exit
If FIRST or INCREMENT is omitted, it defaults to 1. That is, an omitted INCREMENT defaults to 1 even when LAST
is smaller than FIRST. FIRST, INCREMENT, and LAST are interpreted as floating point values. INCREMENT is usually
positive if FIRST is smaller than LAST, and INCREMENT is usually negative if FIRST is greater than LAST. When given,
the FORMAT argument must contain exactly one of the printf-style, floating point output formats %e, %f, %g
$ cat conn.sql
#! /bin/bash
for ((i=1; ido
sqlplus scott/xxxx @aa.sql &
done
--這樣那個可以寫成
for i in $(seq 10); do
sqlplus scott/xxxx @aa.sql &
done
昨天看一些shell指令碼,發現一個命令seq。自己以前從來沒有使用過。
$ rpm -qif `which seq`
Name : coreutils Relocations: (not relocatable)
Version : 5.2.1 Vendor: Red Hat, Inc.
Release : 31.2 Build Date: Mon 20 Jun 2005 07:45:58 PM CST Install Date: Fri 06 Jul 2007
Install Date: Fri 06 Jul 2007 03:30:09 PM CST Build Host: crowe.devel.redhat.com
Group : System Environment/Base Source RPM: coreutils-5.2.1-31.2.src.rpm
Size : 7636028 License: GPL
Signature : DSA/SHA1, Thu 14 Jul 2005 02:52:44 AM CST, Key ID 219180cddb42a60e
Packager : Red Hat, Inc. <
URL : ftp://alpha.gnu.org/gnu/coreutils/
Summary : The GNU core utilities: a set of tools commonly used in shell scripts
Description :
These are the GNU core utilities. This package is the combination of
the old GNU fileutils, sh-utils, and textutils packages.
$ man seq
SEQ(1) User Commands
NAME
seq - print a sequence of numbers
SYNOPSIS
seq [OPTION]... LAST
seq [OPTION]... FIRST LAST
seq [OPTION]... FIRST INCREMENT LAST
DESCRIPTION
Print numbers from FIRST to LAST, in steps of INCREMENT.
-f, --format=FORMAT
use printf style. floating-point FORMAT (default: %g)
-s, --separator=STRING
use STRING to separate numbers (default: \n)
-w, --equal-width
equalize width by padding with leading zeroes
--help display this help and exit
--version
output version information and exit
If FIRST or INCREMENT is omitted, it defaults to 1. That is, an omitted INCREMENT defaults to 1 even when LAST
is smaller than FIRST. FIRST, INCREMENT, and LAST are interpreted as floating point values. INCREMENT is usually
positive if FIRST is smaller than LAST, and INCREMENT is usually negative if FIRST is greater than LAST. When given,
the FORMAT argument must contain exactly one of the printf-style, floating point output formats %e, %f, %g
$ cat conn.sql
#! /bin/bash
for ((i=1; ido
sqlplus scott/xxxx @aa.sql &
done
--這樣那個可以寫成
for i in $(seq 10); do
sqlplus scott/xxxx @aa.sql &
done
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-758573/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- linux命令之seqLinux
- 使用 Linux seq 命令生成數字序列Linux
- Seq2Seq詳解
- Seq2Seq原理詳解
- TensorFlow實現seq2seq
- seq2seq 的 keras 實現Keras
- [20191215]seq控制執行順序.txt
- 深度學習的seq2seq模型深度學習模型
- 系統學習NLP(十五)--seq2seq
- Ubuntu linux命令練習1 shell seq rand 格式化UbuntuLinux
- 注意力(Attention)與Seq2Seq的區別
- Seq2Seq有哪些不為人知的有趣應用?
- 常用find命令與xargs.txt
- 語言模型(五)—— Seq2Seq、Attention、Transformer學習筆記模型ORM筆記
- 【深度學習篇】--Seq2Seq模型從初識到應用深度學習模型
- 引入tf-seq2seq:TensorFlow中開源序列到序列框架框架
- seq2seq通俗理解----編碼器和解碼器(TensorFlow實現)
- 深度學習教程 | Seq2Seq序列模型和注意力機制深度學習模型
- 論文推薦:機器閱讀理解,文字摘要,Seq2Seq加速
- seq_file操作函式函式
- 乾貨|當深度學習遇見自動文字摘要,seq2seq+attention深度學習
- 使用Python實現深度學習模型:序列到序列模型(Seq2Seq)Python深度學習模型
- tree和dir命令方便檔案整理txt
- Seq2Seq那些事:詳解深度學習中的“注意力機制”深度學習
- proc-macro-workshop:seq-1Mac
- proc-macro-workshop:seq-2Mac
- proc-macro-workshop:seq-3Mac
- proc-macro-workshop:seq-4Mac
- proc-macro-workshop:seq-5Mac
- proc-macro-workshop:seq-6Mac
- proc-macro-workshop:seq-7Mac
- proc-macro-workshop:seq-8Mac
- proc-macro-workshop:seq-9Mac
- NLP教程(6) - 神經機器翻譯、seq2seq與注意力機制
- 使用機器學習翻譯語言:神經網路和seq2seq為何效果非凡?機器學習神經網路
- 學習筆記CB014:TensorFlow seq2seq模型步步進階筆記模型
- 深度學習-->NLP-->Seq2Seq Learning(Encoder-Decoder,Beam Search,Attention)深度學習
- 深度學習對對聯:探索seq2seq-couplet專案的智慧對聯生成深度學習