I have below set of data in unix txt file:
/this/is/a/directory_name/which/i/want:listen= tcp://someurl
/this/is/a/another_directory_name/which/i/want:listen= tcp://someotherurl
the output which basically intended is:
directory_name <whitespace> tcp://someurl
another_directory_name <whitespace> tcp://someotherurl
Below is the command that I am trying but only getting either the url or either the directoryname
cat the_file.txt|awk -F '/' '{print $5}'
cat the_file.txt|awk -F '=' '{print $2}'
can there be a way to achive both of the above command simultaneously and get the output in the same line ? Much appriciated