Is there a command line tool in linux that will 'normalize' a filename? i.e. remove all "xx/./xx" parts, or "myfolder/../myotherfolder" parts?
Linux – Command line tool to normalize a filename
command-line-interfacelinux
Related Topic
- Linux – n easy command line tool for packet sniffing a single command on linux
- Windows – Does Windows Have a Built-in ZIP Command for Command Line?
- Windows – What’s the command-line utility in Windows to do a reverse DNS look-up
- Linux command line best practices and tips
- Linux – Find out symbolic link target via command line
Best Answer
Actually, it is realpath: http://linux.about.com/library/cmd/blcmdl3_realpath.htm
There is also a command-line version: cyberciti.biz/faq/unix-linux-bsd-find-real-physical-path/
But on my CentOS 5 it is not available by default.
Also there is a "cheating way":