6.1.1 创建脚本
脚本作为一个交互式脚本,用户不需要直接与 进行复杂的通信,用户可直接在 脚本的输
入提示下响应操作。
下面将通过使用 cat 命令读取示例文件并在终端上显示其内容,请读者按以下步骤执行。
( )执行以下命令创建文件 。
( )在文件中输入以下内容并保存。
Although similar mechanical devices have been
built in the past to assist in gait therapy, these were
bulky and had to be kept tethered to a power source.
This new suit is light enough that with a decent
battery, it could be used to help patients walk over
terrain as well, not just on a treadmill.
( )使用 命令显示文件内容。
如图 所示为执行 命令显示出的文件内容。
图 显示文件内容的界面效果
评论0