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 Mike Lewis 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: *

  1. rogsal

    VBScript in outlook 2000

    I want an automatic BCC in my mail and my problem is: How do I find out if the Item is of instance,MailItem (Can be CalendarItem also)? This is what I have so far: Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) Dim Tmp As MailItem If item <what to write here?>...
  2. rogsal

    locate / cat question

    or to be more exact #find / -name .forward -exec cat {} \; /Roger
  3. rogsal

    ways to clean a file

    No problem.... I'll fixed it with cat /dev/null > filename
  4. rogsal

    ways to clean a file

    But touch would just update the date on the file not remove its content...
  5. rogsal

    ways to clean a file

    Hi! Normally when I want to delete everything in a file without deleting the file itself I do: # >filename However this doesnt work well when combinig it with rsh calls: # rsh loghost >/var/adm/logfile which will create a file on my local machine and then just hangs there... To make it even...
  6. rogsal

    Echoing the last argument ???

    Hi! I just run into a small problem.... My script takes som parameters and at the end a filename Is there a simple way to echo that last argument?? I tried different variations of echo "${$#}" but it doesn't work all help is useful... /Roger ps. my workaround is a loop with a shift statement...
  7. rogsal

    Attaching multiple files to an email

    I would suggest that there is something changed in your email client(how to handle uuencoded messages). The block begin 644 filname gibberish end is the normal way files get attached to emails, ie as uuencoded textblocks (or mime encoded...)
  8. rogsal

    how to count a specific character in a file?

    Hi! I just thought it was a funny problem so I pulled up this oneliner(bash or ksh): echo $(( `cat your_file|wc -c` - `sed s/\|//g your_file|wc -c` )) Anyone else ??
  9. rogsal

    My script in a pipe???

    Oh! Maybe I was a bit confusing in my first post. fblock is the name of my script which I want to modify so it can be used in a pipe aswell.
  10. rogsal

    My script in a pipe???

    Hi all! I've written a script that greps for a string and outputs b lines before and a lines after. > fblock STRING -b 2 -a 2 FILE but now I would like to use it in a pipe like this: > unzip -c enormous_log.gz | fblock STRING -b 2 -y a How do I do that???

Part and Inventory Search

Back
Top