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 wOOdy-Soft 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 mbach

  1. mbach

    test if string exists on a line

    Ygor, I would like my script to do one more thing. After it determines which lines are servers and which lines are file paths, I want it to plug in the value to the appropriate variable in a backup command. Example: A file is created with a list of servers and files which were not backed up...
  2. mbach

    test if string exists on a line

    ygor, That did the trick!!!!! Thank You!!
  3. mbach

    test if string exists on a line

    ygor, The print statement prints D: emp\system32 instead of D:\temp\system32. How can I make it print the exact file path as it reads it from a file? Mike
  4. mbach

    test if string exists on a line

    vgersh99/ygor, Thanks!!! You guys are good!!! Mike
  5. mbach

    test if string exists on a line

    All, I have a file which contains 2 lines. One line has a server name listed and the line below it shows a path. Example: ECCN088 C:\winnt\temp I want to write a short script that will read each line in the file and echo whether the line contains a server or a file path. I was trying to test...
  6. mbach

    If Then problem

    Salem, Thanks!!!!! Mike
  7. mbach

    If Then problem

    All, Below is a script I wrote which extracts the names of servers which had backups that were partially successful. At the bottom of my script I email a file which usually contains a list of servers. When there are no partially successful backups, the email is blank. I want to modify the script...
  8. mbach

    Field delimiter

    All, How can I make the field delimiter be more than one character in awk? I would like to make it (WIN32. Thanks Mike
  9. mbach

    Rerun backups of files script

    All, I have a script which parses backup reports for files on servers which could not be backed up because the files were used by another process or locked. The script creates a file which looks like the following: ECCN072 C:\WINNT\system32\config\system eccn060...
  10. mbach

    Awk - delete rest of line

    All, I need some help with some logic with awk. I am using awk to parse backup output from piped information. I am extracting file paths that could not be backed up. I want to put some logic in my script that says....if the line contains "(WIN32" delete the part of the line starting...
  11. mbach

    File path extraction from output

    Paulteg, I am using a NetBackup bperror command. bperror -problems | grep swmn047. I want the file paths to be listed in a file which will then be read and the failed files will be automatically reran by another script via a netbackup command. Here is the output.... 1054170166 1 4 8 nbm1...
  12. mbach

    File path extraction from output

    All, I need to extract all windows file paths from a piped output but some file paths (ie...C:\winnt\my documents\...)have spaces in the path. The file paths can be found in the output in between the following strings....."file:" and "(WIN32" and/or a series of numbers...
  13. mbach

    Parsing output

    marsd, I noticed that the failed files always follow the word "file:". The file path (with embedded spaces) ends when the string "(WIN32" appears, or a series of numbers appears (as in a date or job id). Here is an example... ...can't open file: E:\graphics1\cat home\design...
  14. mbach

    Parsing output

    marsd, I still get errors when I try your command. I think I found a way to get the file path including spaces. The command is..... awk ' {i=index ($0,"C:"); j=index ($0,"WIN32"); x=j-i-1; if (i!=0) print substr ($0,i,x);}' This keys on the string WIN32 and prints the file...
  15. mbach

    Parsing output

    marsd, After looking at my output on my master server, I realized that the output I listed above was copied from our netbackup web page error log. Here is output from the bperror -problems|grep server on the unix command line.... OTM Error: will attempt to reenable OTM 1053146843 1 4 8 nbm1...

Part and Inventory Search

Back
Top