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 IamaSherpa 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. aschneck

    Renaming Files

    Ah, great! Thanks a lot, it's working well! bye, Axel
  2. aschneck

    Renaming Files

    Hi, doing a recursive search through a folder and it's subfolder I want to rename special files, if found there. Example: folder1\afile.blah folder1\afile1.bla folder1\folder2\afile.blah All those should be autom. renamed in changing the leading a to b: folder1\bfile.blah folder1\bfile1.bla...
  3. aschneck

    how to detect that written textfile has closed

    OK, thanks again. best regards, Axel
  4. aschneck

    how to detect that written textfile has closed

    HI, thanks, I just tried it. On the Cobol programs it seems working. What I wondered about was when opening a textfile in mcedit (editor from midnight commander) this file wont be shown as open/user by fuser. regards, Axel
  5. aschneck

    how to detect that written textfile has closed

    Hi there, I have a bit terrific problem / question. I have to write some scripts that should automate some functions in our sun-environment. We have several cobol programs that are running against an oracle db on the sun. Those programs create textfiles on the system (e.g. a listing of...
  6. aschneck

    find and list duplicate lines in file

    OK, so variables inside of awk dont need a $ sign or else, that was what I wondered about. thanks again, Axel
  7. aschneck

    find and list duplicate lines in file

    Hi CaKiwi, just tried it, looks very good. Thanks a lot. OK, right now, 'cause I'm new in awk I dont understand the functions/parameters (sigh...) like flg and sv0, so I have to read some docu because I dont like using things that I dont understand. ;-) But it's working. Thanks, Axel
  8. aschneck

    find and list duplicate lines in file

    Hi, maybe one can help? I have a file (about 1MB in size) that contains result of an grep script. This grep script ran about several thousands of textfiles, get special lines out of them and put them with their file names into an output file: grep -F -R "blabla" * |grep -v noblabla...
  9. aschneck

    Replace whole line where only part of line is known

    Hi MARSD, thanks again, it's working. But after finishing my 600lines script I found that there is another question...hmmm ;-) As you look in my example ther is a line like Current-File=ANHG5030.TXT This line points which file will be used as mailtext with the header file. Means the name of the...
  10. aschneck

    Replace whole line where only part of line is known

    Thanks again. So I'll try that, but before I start rtying it, will this also change the file? Sorry, maybe a stupid question but im a bit new in AWK. Axel
  11. aschneck

    Replace whole line where only part of line is known

    First to both of you thanks for the very fast answer! I'll try both of them. Next sorry for my incomplete question. So, here a bit more information: No that is not a mixed file. What I wanna handle with is an text only file, but yes indeed it has to do with mail. I have a Mail Gateway that get...
  12. aschneck

    Replace whole line where only part of line is known

    Hi, I want to find lines in files that starts with a known string (but not the hole line is known) and than change the whole line (not only the search string) with another line/string. Example: file has line: FROM TEXT: jdoe@org.com search string is 'FROM TEXT:' because it's always the same Then...

Part and Inventory Search

Back
Top