Download the document from ftp://instructor.example.com/pub/testfile, find all lines containing [abcde] and redirect to /MNT/answer document, then rearrange the order according the original content.
A. See explanation below.
Download the document from ftp://instructor.example.com/pub/testfile, find all lines containing [abcde] and redirect to /MNT/answer document, then rearrange the order according the original content.
A. See explanation below.
# wget ftp://instructor.example.com/pub/testfile
# mkdir -p /MNT/answer
# grep ‘abcde’ testfile > /MNT/answer