07 2020 档案

摘要:1.sh+脚本的相对路径 [jinghang@hadoop101 datas]$ sh helloworld.sh helloworld sh+脚本的绝对路径 [jinghang@hadoop101 datas]$ sh /home/jinghang/datas/helloworld.sh hell 阅读全文
posted @ 2020-07-02 19:07 CKF888 阅读(144) 评论(0) 推荐(0)
摘要:简单来说脚本就是将需要执行的命令保存到文本中,按照顺序(由上往下执行),它是解释型的,不需要 编译 脚本格式 #!/bin/bash或者#!/bin/env bash开头 第一个shell脚本:helloworld 1.需求:创建一个shell脚本,输出helloworld 2.案例: [jingh 阅读全文
posted @ 2020-07-02 18:41 CKF888 阅读(636) 评论(0) 推荐(0)