HackerRank - Cut #3
April - 25/2025Problem:
Display a range of characters starting at the 2nd position of a string and ending at the 7th position (both positions included).
# Input
- Hello
- World
- How are you
# Output
- ello
- orld
- ow are
# Solution
cut -c 2-7
# Solution_01
while read line
do
echo "$line" | cut -c 2-7;
done
Post:
- - Cut #4;