Question: Write python scripts that do the equivalent of the following pipelines: a) curl -SL url | grep -Eo 'CSE [234][0-9]{4}' | sed -E -e
Write python scripts that do the equivalent of the following pipelines:
a) curl -SL url | grep -Eo 'CSE [234][0-9]{4}' \ | sed -E -e 's/CSE 2.*/Sophomore/' -e 's/CSE 3.*/Junior/' -e 's/CSE 4.*/Senior/' \ | sort | uniq -c | sort -rn
b) cat /etc/passwd | cut -d : -f 5 | sed '/^\s*$/d' | env LC_ALL=C sort
c) curl -sL url | sed -En 's/\{"name":"([^"]+)".*"type":"wq_factory".*/\1/p'
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
