echo $x_为什么没有结果?

xyq1986 2005-11-15 11:49:17
x=hello
echo $x_为什么没有结果?_起什么作用?
...全文
250 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
223xh 2005-11-19
  • 打赏
  • 举报
回复
晕,shell里不用加下划线啊
happy_go_lucky_clr 2005-11-19
  • 打赏
  • 举报
回复
shell command 里面没有_的呀, 又不是PERL
bekars 2005-11-17
  • 打赏
  • 举报
回复
x!=x_

为什么要一个下划线呢,搂主要做什么事情
xyq1986 2005-11-16
  • 打赏
  • 举报
回复
我说的是x后面有一个下划线_,do you know?
happy_go_lucky_clr 2005-11-16
  • 打赏
  • 举报
回复
try this:

#! /user/local/bin/bash
x=hello
echo $x

before you run the file, change its permission of the file by using

chmod +x hello

(if the file name is hello)

then you run hello, it should display
hello
on your screen

19,610

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧