'How to separate based on a specific string

In Linux, I want to separate a string using a specific string in a file and store the separated string in each column.

A specific string is / , and has it in common.

enter image description here

There are a lot of columns in 100,000 units.

What should I do?

thank you.



Solution 1:[1]

If you intend to do this in R, like your tag suggests:

as.data.frame(lapply(data, function(y) gsub("/", " ", y)))

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Leonhard Geisler