|
how to identify the mode of the file in unix
hi,
I have a requirement in that i need to process a input file
The problem is, the input file sometimes it is coming in dos mode and some times it is coming in unix mode
The script which i have written will process the file only if it is in unix mode and it is not processing if the file is in dos mode
Is there any method to check whether the input file is in dos mode or in unix mode within the script itself (while processing)
So that i can handle the same in my script
Thanks in advance
Regards,
Selvaraj S
|