これが私がやろうとしていることです:
$variable = `grep -i "Text: Added to directory" '$FOO/result.txt' | awk '{print $6}' | tr -d "'"`
print $variable;
出力:
Text: Added to directory /path/to/directory/
Use of uninitialized value $6 in concatenation (.) or string
「テキスト:ディレクトリ/ path / to / directory/に追加」の代わりに「/path / to / directory」だけをフェッチするにはどうすればよいですか?