HackerRank - Cut #2
April - 25/2025Problem:
Display the 2nd and 7th character from each line of text.
# Input
- Hello
- World
- How are you
# Output
- e
- o
- oe
# Solution
cut -c 2,7
# Solution_01
while read line
do
echo "$line" | cut -c 2,7;
done
Post:
- - Cut #3;