我现在想写一个脚本,1.sh 通过这个脚本改变 文件/etc/inittab 的内容。 tty1::respawn:/sbin/getty 38400 tty1 想把getty替换为内容 2sh。 使之 tty1::respawn:/sbin/2sh 38400 tty1 请各位指教下。
by kinghannah - Shell - 2012-09-10 11:31:09 阅读(1686) 回复(5)
如果需要在shell脚本里读取另一个properties文件中定义的变量的值,应该使用什么命令阿?我之前用source /home/cie/bmu/config/bmu.properties 这句好像不太好使阿,给我报错了... 信息如下: /home/cie/bmu/config/bmu.properties: line 2: syntax error near unexpected token `(' /home/cie/bmu/config/bmu.properties: line 2: `mq.server.broker.url = failover:(ssl://128.128.9.4:61616)' 应该怎么写阿?求指导阿大神们...