面试题答案
一键面试#!/bin/bash
while read -r line; do
for word in $line; do
len=${#word}
if (( len > 5 )); then
echo "$len:$word" >> output.txt
fi
done
done
#!/bin/bash
while read -r line; do
for word in $line; do
len=${#word}
if (( len > 5 )); then
echo "$len:$word" >> output.txt
fi
done
done