So here's the setup. You've logged into one of your servers to update
permissions on a file only to see this:
server [0] /bin/chmod +x /opt/somefile
Showing posts with label perl. Show all posts
Showing posts with label perl. Show all posts
29 October 2010
18 October 2010
Simple Pattern Replacements
Managing data within a file sometimes requires that all instances of a specific word / phrase be replaced with that of another. This could be something along the lines of a file from one host is copied to another, thus the hostname contained in the file must be updated to reflect the
Epoch Time
Have you ever needed a way to determine UNIX (Epoch) Time, or perhaps its
counterpart in 24 hour format?
via perl:
counterpart in 24 hour format?
via perl:
Subscribe to:
Posts (Atom)