1. The problem statement, all variables and given/known data Say I have a textfile that is seperated by columns, and I want to search columns 10-15. If there are any matches, then I want to cut out specific parts of all the matches and print it to the user. How do I do this? 2. Relevant equations 3. The attempt at a solution What I tried was: cut -c 10-15 textfile.txt | grep -q $userInput But then how would I cut out the specific results from this entry? I want to search columns 10-15, then print out columns 20-35 of all results from that search.