HackerRank - Cut #8

April - 25/2025

Problem:

Given a sentence, identify and display its first three words. Assume that the space (' ') is the only delimiter between words.

# Input

# Output

# Solution

            
    cut -d ' ' -f 1-3
    

# Solution_01

            
    while read line
    do
        echo "$line" | cut -d ' ' -f 1-3
    done
  

Post: