mirror of
https://github.com/nushell/nushell.git
synced 2025-08-19 08:01:30 +02:00
Split split command to sub commands.
This commit is contained in:
@@ -30,7 +30,7 @@ fn table_to_csv_text() {
|
||||
open csv_text_sample.txt
|
||||
| lines
|
||||
| trim
|
||||
| split-column "," a b c d origin
|
||||
| split column "," a b c d origin
|
||||
| last 1
|
||||
| to csv
|
||||
| lines
|
||||
@@ -63,7 +63,7 @@ fn table_to_csv_text_skipping_headers_after_conversion() {
|
||||
open csv_text_sample.txt
|
||||
| lines
|
||||
| trim
|
||||
| split-column "," a b c d origin
|
||||
| split column "," a b c d origin
|
||||
| last 1
|
||||
| to csv --headerless
|
||||
| echo $it
|
||||
|
@@ -88,7 +88,7 @@ fn table_to_json_text() {
|
||||
r#"
|
||||
open sample.txt
|
||||
| lines
|
||||
| split-column "," name luck
|
||||
| split column "," name luck
|
||||
| select name
|
||||
| to json
|
||||
| from json
|
||||
|
@@ -39,7 +39,7 @@ fn table_to_tsv_text() {
|
||||
r#"
|
||||
open tsv_text_sample.txt
|
||||
| lines
|
||||
| split-column "\t" a b c d origin
|
||||
| split column "\t" a b c d origin
|
||||
| last 1
|
||||
| to tsv
|
||||
| lines
|
||||
@@ -69,7 +69,7 @@ fn table_to_tsv_text_skipping_headers_after_conversion() {
|
||||
r#"
|
||||
open tsv_text_sample.txt
|
||||
| lines
|
||||
| split-column "\t" a b c d origin
|
||||
| split column "\t" a b c d origin
|
||||
| last 1
|
||||
| to tsv --headerless
|
||||
| echo $it
|
||||
|
Reference in New Issue
Block a user