Bash Script - Text (CSV) manipulation
- 状态 完成的
- 预算 $10 - $30 USD
- 总竞标 5
I need a script to manipulate text from my command line. I am on a Mac so the script has to be in bash.
usage: [url removed, login to view] contentfile masterfile column
your script will open the contentfile (in my example: [url removed, login to view]) strip it from LF and CR and will then insert (overwrite if anything should be there) the content of the columns in line 1 to the masterfile, as lines in the specified column.
Yes, I know…I am not that good at explaining ;-) So here is an example…
Input in terminal: [url removed, login to view] [url removed, login to view] [url removed, login to view] 1
Explaination: script, inputfile, outputfile, column to write in
Should produce a file like [url removed, login to view]
File delimiter is and should always be ";" and encoding is UTF8.
If you understood what i mean…you´re good!! :-)
If not, feel free to ask…
Thank you for your efforts!
- The New York Times
- Wall Street Journal
- Times Online