Tag: split

50 votes
12 answers
2.9K views
How can I swap positions of two open files (in splits) in vim?

Assume I've got some arbitrary layout of splits in vim. ____________________ | one | two | |

avatar
Serina
0 1 0 9
asked 07 September, 2021
48 votes
30 answers
1.1K views
How do I split a string on a delimiter in Bash?

I have this string stored in a variable: IN="[email protected];[email protected]" Now I would like to split the stri

avatar
Lynette
0 1 0 9
asked 07 September, 2021
58 votes
30 answers
1.9K views
Split a String into an array in Swift?

Say I have a string here: var fullName: String = "First Last" I want to split the string base on white spac

avatar
Sena
0 1 0 9
asked 07 September, 2021
52 votes
30 answers
1.2K views
How do you split a list into evenly sized chunks?

I have a list of arbitrary length, and I need to split it up into equal size chunks and operate on it. There a

avatar
Lawanda
0 1 0 9
asked 07 September, 2021
51 votes
30 answers
1.1K views
How to split a string in Java

I have a string, "004-034556", that I want to split into two strings: string1="004"; string2="034556"; That

avatar
Brianne
0 1 0 9
asked 07 September, 2021