The command is working fine for files less than 2GB.
When I try converting the files of more than 2GB size I get an error as 'Can't open file'. I now understand that iconv will not be able to convert huge files.
I am using ksh shell
Can someone provide a solution to this.
Unless the utility in question needs to move around within the file (as opposed to just processing text from the start of the file to the end of the file), you can frequently get by much more simply by just redirecting the input file (so the shell opens the file for the utility instead of the utility opening the file itself):