Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
datediff in ksh
Name: vande Date: April 10, 2008 at 08:25:41 Pacific OS: Windows xp, Windows CPU/Ram: 2.4 quad core Intel Product: Dell, Dell, Dell
Comment:
Ok im doing this in ksh 1st off i have an input file that gets read it has the fields f or d (file or directory) path and filename all seperated by whitespace. Im gonna add on to this ttl (Time to live). Now i want to be able to somehow do an ls -? <---dash something not sure what. So i can see the files currently in there and somehow see the creation date of these files then based off the creation date and the current date i want to see the number between the two almost like a datediff then that number will be identified by a variable for example x then i will simply do if [$x ge $ttl] then remove file what would i want to look into doing
Summary: Hi All, I'm trying to open a file and read its data. The file is "a.txt" which contains: foo bar asdf gfdh I want to open this file and read the variables in an array "${values}". Any suggestions how...
Summary: I am trying to send out an email with a file attachment using a script in ksh. I'm fairly new to unix, so first of all, is this even possible? If it is, I'd really appreciate it if someone could sho...