⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex8.sh

📁 Shall高级编程
💻 SH
字号:
#!/bin/bash# Reading lines in /etc/fstab.File=/etc/fstab{read line1read line2} < $Fileecho "First line in $File is:"echo "$line1"echoecho "Second line in $File is:"echo "$line2"exit 0# Now, how do you parse the separate fields of each line?# Hint: use awk, or . . .# . . . Hans-Joerg Diers suggests using the "set" Bash builtin.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -