JavaShuo
欄目
標籤
關於while read line使用read -p失效問題
時間 2020-07-06
標籤
關於
read
line
使用
失效
問題
简体版
原文
原文鏈接
while stdin 原來默認是/dev/tty,被重定向到管道或文件後,若是你還想讀屏幕(/dev/tty),那就單獨執行某個命令時在顯式的將stdin再指向 /dev/ttyhtml #!/bin/bash while read info do echo "$info" read -p'enter' dev </dev/tty echo $dev done < /root/userconfi
>>阅读原文<<
相關文章
1.
cat file | while read line的問題
2.
管道日了狗-while read line大坑
3.
Suse linux腳本中使用while read line讀取文件內容
4.
oracle read line wrap(rlwrap)安裝
5.
關於使用READ TABLE語句
6.
while read line只讀一行或者最後一行讀不到
7.
當while read 趕上ssh
8.
19.Shell編程進階,數組,字符串,(for,select,while read line)
9.
while read line 只執行第一行的解決辦法
10.
android socket read阻塞問題
更多相關文章...
•
ASP Read 方法
-
ASP 教程
•
Spring使用AspectJ開發AOP:基於XML和基於Annotation
-
Spring教程
•
NewSQL-TiDB相關
•
Composer 安裝與使用
相關標籤/搜索
read
read%
1.read
read&write
read'@'id
line
read&readline&readlines
有關問題
問題在於
失效
NoSQL教程
MySQL教程
Hibernate教程
應用
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
在windows下的虛擬機中,安裝華爲電腦的deepin操作系統
2.
強烈推薦款下載不限速解析神器
3.
【區塊鏈技術】孫宇晨:區塊鏈技術帶來金融服務的信任變革
4.
搜索引起的鏈接分析-計算網頁的重要性
5.
TiDB x 微衆銀行 | 耗時降低 58%,分佈式架構助力實現普惠金融
6.
《數字孿生體技術白皮書》重磅發佈(附完整版下載)
7.
雙十一「避坑」指南:區塊鏈電子合同爲電商交易保駕護航!
8.
區塊鏈產業,怎樣「鏈」住未來?
9.
OpenglRipper使用教程
10.
springcloud請求一次好用一次不好用zuul Name or service not known
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
1.
cat file | while read line的問題
2.
管道日了狗-while read line大坑
3.
Suse linux腳本中使用while read line讀取文件內容
4.
oracle read line wrap(rlwrap)安裝
5.
關於使用READ TABLE語句
6.
while read line只讀一行或者最後一行讀不到
7.
當while read 趕上ssh
8.
19.Shell編程進階,數組,字符串,(for,select,while read line)
9.
while read line 只執行第一行的解決辦法
10.
android socket read阻塞問題
>>更多相關文章<<