Potřeboval jsem dnes převést větší množství symlinků na cílové soubory. Nenašel jsem ani po pěti minutách žádný program (tedy jeden ano - unln napsaný v Perlu který nefungoval), takže jsem si vytvořil tento skript. Stačí mu předat jeden nebo více symlinků a on je přepíše cílovými soubory. Třeba se to bude někomu hodit. Použití je snadné:

# ls ...
test_link -> /tmp/test_file

# unln test_link

# ls ...
test_file


Obsah skriptu unln:



Note to English speakers: The script above converts symlinks to files. It basically resolves the symlinks and copy all the destination files over them automatically skipping non-symlink inputs.