What do these successive cut commands do?
cut -f2 -d'"' | cut -f1 -d':'
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It means take the second field (
-f2) as separated by double quote marks (-d'"', which the shell parses to-d'before running cut) , and then the first field (-f1) of that as separated by colons (-d:).For instance,
Phil Miller"developer:juniorwill be processed todeveloper. This is a very contrived example, and it would be useful to see what is actually being used as input to that pipeline.