extract links - get file name from command string