Find the answer to your Linux question:
Results 1 to 3 of 3
How can one check the EOF at the end of a file using Bash Script. Thanks...
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    2

    Checking the End of File in BASH Script

    How can one check the EOF at the end of a file using Bash Script.
    Thanks

  2. #2
    Linux User
    Join Date
    Aug 2006
    Posts
    458
    what actually are you wanting to do?

  3. #3
    Just Joined!
    Join Date
    Sep 2007
    Posts
    2
    I am using Terada, and the utility named FASTLOAD (used to load flat files in database table) has the constraint that each file should have EOF marked, otherwise the utility fails to load data. Currently i used to check the flat files manually using command tail -5 * >ch.txt then checking ch file that each file has EOF at the end. I want to automate this process through a script, which checks and saperate those files which does not have EOF.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...