Write an AWK command command to select the lines from the “text.txt” file that contain any of the following values 00, 03, or 07. The output of the AWK command must be saved in a file named “text_selected.txt”. Make sure that the “text_selected.txt” file is stored in the account home directory. What is the absolute path of “text_selected.txt” file? Display the absolute directory of “text_selected.txt” file in the home directory.

The AWK command to select the lines containing any of the given values and save the output in a file named “text_selected.txt” is:

awk '/00|03|07/' text.txt > ~/text_selected.txt

The absolute path of “text_selected.txt” file is:

/home/username/text_selected.txt

To display the absolute directory of “text_selected.txt” file in the home directory, the following command can be used:

dirname ~/text_selected.txt

Note: Replace “username” in the above commands with the actual username of the account.