Hot answers tagged command-line
I've been updating the Perl Power Tools for the modern versions of perl, and I have given the distribution a better name: PerlPowerTools. You should be able to install that distribution directly. Part of my work is to test the code. Some of it is broken, some of it doesn't work with newer perls, and some of it has dependencies that were never specified.
Just destroy the tapes if you're disposing of them... They can be shredded, crushed, burned (don't really) or just sent away to the same place that handles your document storage/destruction. Would you really want to sit around and wait for this to complete tape by tape? Plus being DLT, there's a manual intervention aspect to the load-eject-load cycle. To ...
What about using date -d@SECONDS_SINCE_1970 [some format]? while IFS=, read -r f1 f2 do echo "$(date -d@$f1),$f2" done < file Then you can play with the date options, so that you can get for example: $ date -d@1411622586 "+%D %T" 09/25/14 07:23:06 Test $ while IFS=, read -r f1 f2; do echo "$(date -d@$f1),$f2"; done < file Thu Sep 25 07:16:46 ...
I know this post is old, but for future visitors, if you want a cryptographically secure pseudorandom MAC address, without being limited to 0x02 as the OUI, here is a fast mostly platform agnostic generator: $ printf '%02x' $((0x$(od /dev/urandom -N1 -t x1 -An | cut -c 2-) & 0xFE | 0x02)); od /dev/urandom -N5 -t x1 -An | sed 's/ /:/g'
This happened to me today! but you need not panic. suppose "file.txt" is your file name. in linux command prompt, go to the directory from where you moved the file "file.txt" (using cd directory_name) type ls -a (lists all files & sub directories including hidden files and directories) you will see that a copy of the file that you moved was saved as ...
Only top voted, non community-wiki answers of a minimum length are eligible