bash

Append contents of all matching files to sum.log

cat *.log >> sum.log

Overwrite sum.log with contents of all matching files

cat *.log > sum.log

Get full path of a file (file does not need to exist)

readlink -f file.txt