To Run the Script in command line It's a R Script
Adarshs-MacBook-Air:File Reduse adarshpawar$ ls
Script.R sample.csv
Adarshs-MacBook-Air:File Reduse adarshpawar$ RScript Script.R sample.csv 3
Adarshs-MacBook-Air:File Reduse adarshpawar$ ls
Output_0 Script.R sample.csv
Adarshs-MacBook-Air:File Reduse adarshpawar$ cat Output_0
"type" "symbol" "price" "quantity" "expirydate" "strikeprice" "amendtime" "id" "parentid"
"P" "ICICIBANK" 1100 100 20121210 120 "20121209103030 1237 1234
"P" "ICICIBANK" 1100 100 20121210 120 "20121209103030 1241 1234
"T" "ICICIBANK" 1000 100 20121210 120 "20121209103030 1234 0
Adarshs-MacBook-Air:File Reduse adarshpawar$
In Output0.txt file
Tab separated variables
"type" "symbol" "price" "quantity" "expirydate" "strikeprice" "amendtime" "id" "parentid"
"P" "ICICIBANK" 1100 100 20121210 120 "20121209103030 1237 1234
"P" "ICICIBANK" 1100 100 20121210 120 "20121209103030 1241 1234
"T" "ICICIBANK" 1000 100 20121210 120 "20121209103030 1234 0