Shell

Zyxware default image3
| 2 min read
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.
Zyxware default image1
| 3 min read
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
Zyxware default image1
| 2 min read
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.