Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by btinder

  1. btinder

    How to send an Outlook email from Excel

    Skip, Thanks for the link, it helped me immensely. How would I go about writing a function to call the CreateMail function once the conditions are met?
  2. btinder

    How to send an Outlook email from Excel

    I've got a worksheet with 3 columns: A. User Name B. How many days left until their password expires C. Date of their password expiration. I'd like to be able to run a macro which determines if anybody has their password expiring in the next 10 days. So if column B contains a 10 or less, then...
  3. btinder

    Ignoring white space for a sort.

    I think it worked! Thanks much for your help!
  4. btinder

    chmod

    Usually, there's no issue when making a text file executable, but 777 is just asking for problems. For what purpose do you need to open up the directories?
  5. btinder

    Ignoring white space for a sort.

    Yes, the data is fixed. No, we can't modify the data, since it comes from an extract of a database.
  6. btinder

    Ignoring white space for a sort.

    Hi all, I've got a file that has lines likes this: 2 123456789WWWWW 0501 A B The primary key to sort on is the 123456789WWWWW and the secondary sort key is the 0501 (year/month). My current sort command is this: sort +1n -2 +2n -3 ${file}.stripped > ${file}.sorted A problem exists though...
  7. btinder

    File aging script

    Oops! I forgot that I wrote that post a long time ago. Thanks for reminding me PHV. Thanks also to xmb for the help. I think I can try writing this script now!
  8. btinder

    File aging script

    It looks like it would work. What does the time variable do? Can you explain the script a little? Thanks.
  9. btinder

    File aging script

    Hi all, I am working on a script that scans several directories looking for a particular file in each and see if the file is older than 30 minutes. The filename is core.txt in all of the directories. Currently, I have a script that works about 90% of the time, but lately it's been flaky, and...
  10. btinder

    Issue With Filenames With Spaces In Them

    Awesome. Thanks PH.
  11. btinder

    Issue With Filenames With Spaces In Them

    Thanks PH, That worked! Can you explain to me quickly why that way works and my way didn't?
  12. btinder

    Issue With Filenames With Spaces In Them

    OK, I searched and saw a couple of answers, but they didn't really apply to my script. Here's a snippet from my script: #!/bin/ksh function build_ftp_script { echo ${@:-} >> $ftp_script } function build_transfer_status { if [[ -a $ftp_script ]] ; then rm -f $ftp_script fi...
  13. btinder

    Comparing modification time on files

    Anyone know of a quick/easy way to check to see if a file hasn't been modified in the last 30 minutes? For example, file1.txt hasn't been updated/touched since 10:30am, and file2.txt was last modified/touched at 10:55am, it's now 11:05am, how do I get the script to alert me that file1.txt is...
  14. btinder

    Adding an Index field to a text file

    Thanks PH.
  15. btinder

    Adding an Index field to a text file

    Got it. %06d will do it.

Part and Inventory Search

Back
Top