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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!