关于shell
mysql -uroot -ppassword mysql ?<<EOF1 show tables; EOF1 其中EOF1為分界符, s h e l l將分界符之后直至下一個同樣的分界符之前的所有內容都作為輸入,遇到下一個分界符, s h e l l就知道輸入結束了。
[root@centos shell]# sh? mysql.sh
Tables_in_mysql
columns_priv
db
event
func
general_log
help_category
help_keyword
help_relation
help_topic
host
ndb_binlog_index
plugin
proc
procs_priv
servers
slow_log
tables_priv
time_zone
time_zone_leap_second
time_zone_name
time_zone_transition
time_zone_transition_type
user
轉載于:https://blog.51cto.com/youngcloud/1627130
總結
- 上一篇: Nubiers to follow
- 下一篇: hadoop文件系统与I/O流