Shell 学习日记

Day1:

基本I/O :

  printf "aaa\n"

  echo "aaa" // 带自动换行

管道:(读取txt 的内容, 处理, 输出到sort, 再输出到txt文件)

  

 

 tr [options ]  source_char_list replace_char_lst 

  功能: 转换或者删除字符

  -d : 自标准输入删除source_char_list的字符,而不是转化他们。

特殊文件:

  /dev/null : bit bucket :传到该文件的数据都会丢掉

 

 

      /dev/tty

     打开此文件时, 会自动重定位到一个console.

 

posted @ 2020-05-12 13:11  John_K  阅读(106)  评论(0)    收藏  举报