delphi programming forums mysql charset mget recursive synonimos
free ventrilo servers hosting cs javascript delay python find in list
Back Forum New
abstract:

I've been researching and attempting to do so, but with my limited linux knowledge I've yet to be successful.
What linux command can I use to do so? and how to word it?
Thanks,
James


Hi,
In Linux:
I'm trying to read in the contents of a file, but want to strip any and all " marks (double quotation marks). I don't want to replace, I want to completely remove them from the output. I've been researching and attempting to do so, but with my limited linux knowledge I've yet to be successful.
What linux command can I use to do so? and how to word it?
Thanks,
James

TOP

Here's an answer to my question, and for the benefit to others in the future. The tr command
Code:
  1. tr --delete \"
Copy Code
I was trying to read contents of a file into an array variable, but without all the annoying " (double quotes) the file contained. So my code looks like:
Code:
  1. array=( `cat $filename | tr --delete \"`)
Copy Code




I've been researching and attempting to do so, but with my limited linux knowledge I've yet to be successful.
What linux command can I use to do so? and how to word it?
Thanks,
James

TOP

Back Forum