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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: btinder
  • Content: Threads
  • Order by date
  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. btinder

    Adding an Index field to a text file

    Hi there, I have kludged together a KSH script to add an "index" field to a file, but it's extremely slow, because I'm reading each line of the file into a variable, then adding the index variable then the rest of the line. This is how I did it: while read buffer do index=`expr $index...
  7. btinder

    Minute differences.

    Hi all, I have a process that wakes up, works for a little bit, then goes back to sleep for 5 minutes, wakes up, etc... It outputs in a log file when its sleeping and when its working. I'd like to have a script that will figure out the difference in minutes between when it went to sleep and...
  8. btinder

    Checking File Permissions

    Hi all, I saw a thread about finding files with certain permissions, but I wanted the find command to list files that DON'T have the specified permissions, and are owned by a proper group. Example: findperms.ksh <path> <group> <permissions> <path> = Path to search through (subdirs and files...
  9. btinder

    Show data in logfile between certain date/time

    Hi there, Our system has a logfile that is generated for an application when it starts and completes. The format of the date/time is: DD-MMM-YY@HH:MM:SS <msg> example: 20-May-04@18:00:00 Started I want to write a script that will display the logfile from a certain time to the same time...
  10. btinder

    Split a file / Lines must stay together

    Hi all, I want to split a large file (10,000) lines into 2 5,000 line files, but with a twist: 1. Records have a string that I sort the main input file on (not a fixed string, it changes). 2. when splitting the file, records with the same exact identifier must stay together. So for example...

Part and Inventory Search

Back
Top