2017年10月13日

摘要: shell 文件包含 . filename # 注意点号(.)和文件名中间有一空格 source filename name.sh: name="donny" test.sh: source ./name.sh # . ./name.sh echo "My name is ${name}!" 阅读全文
posted @ 2017-10-13 09:22 唐先生_DowneyJr 阅读(311) 评论(0) 推荐(0)
摘要: 输出重定向 command1 > file1 vim test hello cat test who > users cat test echo "nihao" > test cat test 输入重定向 command1 < file1 wc -l test 统计行数 重定向深入了解 一般情况下, 阅读全文
posted @ 2017-10-13 09:11 唐先生_DowneyJr 阅读(274) 评论(0) 推荐(0)
摘要: shell 函数 阅读全文
posted @ 2017-10-13 08:05 唐先生_DowneyJr 阅读(112) 评论(0) 推荐(0)

导航