How do I replace every TAB character in a file with a comma?
Answer / Sunny Mehrotra
"You can use the 'tr' operator to replace all tab characters (t) with commas (,). For example: tr/t/,/ < filename >n"n"will read from the file named 'filename', replace every tab character with a comma and write the result back to the same file."
| Is This Answer Correct ? | 0 Yes | 0 No |
What is it meants by '$_'?
Explain the difference between "my" and "local" variable scope declarations. ?
What are the various advantages and disadvantages of perl?
What does this symbol mean '->'?
What are the logical operators used for small scale operations?
What is the difference between $array[1] and @array[1]?
How do I pass a command line argument in perl?
What is the easiest way to download the contents of a URL with Perl?
Explain lists and ivalue?
Which functions in perl allows you to include a module file. State their differences.
How do find the length of an array?
What is the difference between die and exit in perl?