When you work with large CSV files it is sometimes useful to have a quick way to split the csv file into smaller pieces so that another application / process / people can work on these smaller files in parallel. Here is a nifty bash script to split a csv file into multiple pieces and retain the same header in all pieces.
Shell
Converting the jpg to text is done by OCR(Optical character reading). There are lot of online OCR services available now. But these services set a limit in the input file size we are feeding. So the best option is to do conversion through the shell command. Here I explain the conversion using the shell commands.
Bulk uploading is used to upload large amount of data within a short period of time. This article includes the test cases for bulk uploading. The test cases are based upon the below requirement: Option to bulk upload multiple number of groups. The file should be of the format .csv
I had a requirement where I had to execute shell command from PHP. The requirement was that I had to find details of a domain using commands like whois and then store this information into files in a folder. The only input parameter for the process was the name of the domain which was passed on from the Drupal site. The PHP function (shell_exec) was designed to do things like this.