[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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [20210322]seq xargs.txt
- [20191215]seq控制執行順序.txt
- 使用 Linux seq 命令生成數字序列Linux
- Seq2Seq詳解
- TensorFlow實現seq2seq
- Seq2Seq原理詳解
- Ubuntu linux命令練習1 shell seq rand 格式化UbuntuLinux
- [20220311]windwos下使用seq與xargs建立多個子目錄問題.txt
- seq2seq 的 keras 實現Keras
- [20230514]basename dirname命令.txt
- 深度學習的seq2seq模型深度學習模型
- seq2seq之雙向解碼
- 系統學習NLP(十五)--seq2seq
- [20191128]date命令別名.txt
- [20190505]ts 命令在哪裡.txt
- [20210920]bbed的assign命令.txt
- [20210304]bbed的assign命令.txt
- [20220329]windwos下使用seq與xargs建立多個子目錄問題(補充).txt
- [20190411]linux stat 命令疑問.txtLinux
- [20191119]探究ipcs命令輸出.txt
- [20211213]完善date命令別名.txt
- [20220329]windows xcopy命令問題.txtWindows
- seq2seq裡在chatbot的一些用法
- 注意力(Attention)與Seq2Seq的區別
- Rna-seq edgeR
- [20180628]顯示bbed x命令格式.txt
- [20200224]windows命令學習筆記.txtWindows筆記
- [20180302]使用find命令小錯誤.txt
- [20230323]ps命令檢視thread.txtthread
- [20210410]關於time命令的解析.txt
- [20201123]timeout 命令學習筆記.txt筆記
- 語言模型(五)—— Seq2Seq、Attention、Transformer學習筆記模型ORM筆記
- 【深度學習篇】--Seq2Seq模型從初識到應用深度學習模型
- seq2seq通俗理解----編碼器和解碼器(TensorFlow實現)
- [20190301]簡單測試linux fsfreeze命令.txtLinux
- [20180627]測試bbed是否支援管道命令.txt
- [20200107]vim的特殊功能g命令.txt
- [20191112]flock控制命令執行順序.txt
- [20191119]探究ipcs命令輸出2.txt