Results 1 to 3 of 3
How can one check the EOF at the end of a file using Bash Script.
Thanks...
- 09-26-2007 #1Just 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
- 09-26-2007 #2Linux User
- Join Date
- Aug 2006
- Posts
- 458
what actually are you wanting to do?
- 09-26-2007 #3Just 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.


Reply With Quote