We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Linux Shell
- Text Processing
- Cut #6
- Discussions
Cut #6
Cut #6
Sort by
recency
|
84 Discussions
|
Please Login in order to post a comment
I solved this problem using a Bash script (cut -c 13-), and now I’m trying to run it in Python 3, but test case 1 keeps failing. Has anyone else tried this and succeeded? Here’s my code: :- import sys
for line in sys.stdin:
Simply writing "cut -c13-" will solve everything
for(( N=1;N<=100;N++ )) do read line echo "$line" | cut -c13- done
for(( N=1;N<=100;N++ )) do read line echo "$line" | cut -c13- done