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

📄 ex_1.6

📁 Advanced Bash&#8722 Scripting Guide An in&#8722 depth exploration of the art of shell scripting Me
💻 6
字号:
#!/bin/csh -f# The Party Program--Invitations to friends from the "guest" file#set guestfile = ~/shell/guestsset guestfile = ./guestsif ( ! -e "$guestfile" ) then   echo "$guestfile:t non-existent"   exit 1endifsetenv PLACE "Sarotini's"@ Time = `date +%H` + 1set food = ( cheese crackers shrimp drinks "hot dogs" sandwiches )foreach person ( `cat $guestfile` )    if ( $person =~ root ) continue   mail -s "Party" $person << FINIS   # Start of here document    Hi ${person}! Please join me at $PLACE for a party!    Meet me at $Time o'clock.    I'll bring the ice cream. Would you please bring $food[1] and    anything else you would like to eat? Let me know if you can't    make it. Hope to see you soon.          Your pal,                ellie@`hostname` # or `uname -n`FINIS   shift food   if ( $#food ==  0 ) then      set food = ( cheese crackers shrimp drinks "hot dogs"      sandwiches )   endifend

⌨️ 快捷键说明

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