Archive for the ‘KSH’ Category
Copy everything from a dvd to harddrive using dd
DVD Copying to hard drive with dd
In adddition to using vobcopy, and mkisofs you could also use plain old dd to do the trick ( sometimes )
It sometimes works, and when it does it works well.
From the command line in *nix ( Unix, Linux, OS X, etc. )
> dd if=/dev/dvd of=/tmp/dvdfilenametocreate
Lets break this down. dd is the command you are running, and if is the input file, everything is a file in *nix, and of is the output file you wish to write.
Read the rest of this entry »
Determine Yesterday’s Date in a unix environment using ksh and date()
Unix and KSH to find yesterday’s date
Mastering Unix Shell Scripting: Bash, Bourne, and Korn Shell Scripting for Programmers, System Administrators, and UNIX Gurus, 2nd Edition
Wicked Cool Shell Scripts: 101 Scripts for Linux, Mac Osx, and Unix Systems
I did a bunch of searching and found a lot of places online to do timestamp conversions, and perl programs to get yesterday’s date. Some worked and some didn’t. But none the less, I didn’t need a whole program to do this, and I especially didn’t need an online converter for use in my app. I needed something simple and small that didn’t use a lot of calulations.
Here is what i came up with for use in the shell (KSH)
Read the rest of this entry »