Tag Info

Hot answers tagged


The wrong TZ is probably set via .profile, .bash_profile or bashrc, thus overriding the machine-wide TZ setting in /etc/timezone


On unix, the timezone for an individual process can be set by setting the environment variable TZ. Each process can have a different value for TZ and thus show a different timezone. If TZ isn't set, there's a system-wide default. In your second example, you ran ssh with specifying a command to run on the remote server. So ssh set up an ordinary interactive ...


The symbol #, as explained in another answer, represents the command line prompt. In this case # represents the root's command line prompt and $ represents the command line prompt for another user. So check you are executing those commands as root.


You need to create a small script file to do your rename/move: call it rnmv, say, and put the following command into it: f="${1#./}"; echo mv "$f" "${f%%/*}.${f##*.}" Don't forget to chmod +x rnmv. Then go to the root directory and call rnmv from a find command: cd {wherever temp2 root is} find . -name "temp2.txt" -exec rnmv "{}" \; When you are happy ...


Try xmllint and the --xpath option: <xml> <hello>world!</hello> </xml> $ xmllint --xpath '//hello/text()' world!

Only top voted, non community-wiki answers of a minimum length are eligible