shell腳本:從鍵盤輸入字符串後倒序輸出

前言: 此篇爲如何用shell腳原本達到從鍵盤輸入字符串可倒序輸出的效果。不借用rev命令實現。shell 方法一: #!/bin/bash #by Anasta in 1.0-2018.5.3 #使用read讀入一段字符串,最後以倒序的方式打印出這一段字符串 echo "\033[47mQuit program when input is empty.\033[0m"    # 前面的「\03
相關文章
相關標籤/搜索