duangsuse::Echo
584 subscribers
4.12K photos
118 videos
579 files
6.13K links
import this:
美而不丑、明而不暗、短而不凡、长而不乱,扁平不宽,读而后码,行之天下,勿托地上天国。
异常勿吞,难过勿过,叹一真理。效率是很重要,盲目最是低效。
简明是可靠的先验,不是可靠的祭品。
知其变,守其恒,为天下式;穷其变,知不穷,得地上势。知变守恒却穷变知新,我认真理,我不认真。

技术相干订阅~
另外有 throws 闲杂频道 @dsuset
转载频道 @dsusep
极小可能会有批评zf的消息 如有不适可退出
suse小站(面向运气编程): https://WOJS.org/#/
Download Telegram
duangsuse::Echo
#!/bin/sh # Telegram PL 互骂组 AI 脚本文字重置版 # 兼容 Zsh、Bash、Sh function ai() { local user_input; while read user_input < "${1:-/dev/stdin}"; do local ai="\e[1;32m" ui="\e[0m"; echo "${ai}$user_input ${ui}" | sed 's/?\|?/!/g' | sed 's/吗//g' if […
顺手学了一下 POSIX ShellScript 系语言使用 #PL #Sysadim #UNIX #Linux #Bash
顺推 sort、shuf(fle)(洗牌)、head、uniq、comm、nl、tr、sed(Stream EDitor) 这些基于换行符的 pipeline routines

#!/bin/sh

# Telegram PL 互骂组 AI 脚本文字重置版
# 兼容 Zsh、Bash、Sh

function ai_print_prompt() {
printf '\e[34m㉄:\e[0m' # print prompt
}

function ai() {
local user_input;
ai_print_prompt;
while read user_input < "${1:-/dev/stdin}"; do
local ai="\e[1;32m" ui="\e[0m";
printf "${ai}$user_input ${ui}\n" | sed 's/?\|?/!/g' | sed 's/吗//g';
if [ `expr "$user_input" : '^再见'` -gt 0 ]; then break; fi
ai_print_prompt;
done
}

if [ $0 = 'ai.sh' ]
then
ai
fi