CURDIR设置为当前工作目录的绝对路径名。 为了方便起见,当GNU启动(在处理了任何-C选项之后)时,它会将...
方法一: curdir = $pwd tooldir = $curdir ... export curdir export tooldir 方法二: TOP = (dirname $0) export TOP dirname $0 获得文件所在目录名 basename $0 获得文件名 curshellname =basename $0 //获取当前 运行脚本 的名字 echo "$curshellname" //打印出来...
SUBDIRS=$(PWD) $@ $(MAKE) -C ../.. SUBDIRS=$(CURDIR) $@ 2 changes: 1 addition & 1 deletion 2 tools/build/Makefile Original file line numberDiff line numberDiff line change @@ -1,5 +1,5 @@ ifeq ($(srctree),) srctree := $(patsubst %/,%,$(dir $(shell pwd))) src...
pwd` 省略...export DORIS_HOME=`cd "$curdir/...此时curdir是bin所在的目录. @@彩蛋@@: 如果你在系统任意一个目录执行, “bin/start_fe.sh”这段使用相对路径或者绝对路径, curdir值会怎么变化呢?...“cd "$curdir"; pwd”, 执行这个脚本后, 就能获取到start_fe.sh所在的全路径“export DORIS_HOME=...
pwd 查看当前目录!! 执行上一条命令!n n是数字表示第多少行history |grep 1002!字符是表示开头指令alias 别名。unalias 删除别名列: alias wangshuai = “pwd”unalias wangshuai* 符号用来匹配零个或多个字符,用?匹配一个字符重定向 输入重定向命令是< ...
[root@centos Makefile]# pwd /root/Makefile [root@centos Makefile]# ls include Makefile [root@centos Makefile]# ls include/ Makefile [root@centos Makefile]# cat include/Makefile all: @echo "Hi, I am hear" [root@centos Makefile]# make -C include ...