|
hi,
i am not asking for tr -d '\r' < infile > outfile
if you are inside shell script, from the script itself you can check whether a file is having execute, read, write permissions
like that i am asking. From within a shell script i want to check whether the input file is in dos mode or unix mode
My intention is in whatever format (dos or unix) they send the file to unix box my script has to check the type and if it is not matching it has to convert it into unix mode with in the shell script while processing
thanks
|