https://github.com/nodef/extra-list.cmd
Manage a list of strings in Windows Console.
https://github.com/nodef/extra-list.cmd
console extra list manage merferry program string windows
Last synced: about 2 months ago
JSON representation
Manage a list of strings in Windows Console.
- Host: GitHub
- URL: https://github.com/nodef/extra-list.cmd
- Owner: nodef
- License: mit
- Created: 2017-10-16T18:32:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-04-10T19:59:20.000Z (about 1 year ago)
- Last Synced: 2025-08-25T02:02:45.966Z (10 months ago)
- Topics: console, extra, list, manage, merferry, program, string, windows
- Language: C#
- Homepage: https://cmdf.github.io/extra-list/
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Manage a list of strings in Windows Console.
> 1. Download [exe file](https://github.com/cmdf/extra-list/releases/download/1.0.0/elist.exe).
> 2. Copy to `C:\Program_Files\Scripts`.
> 3. Add `C:\Program_Files\Scripts` to `PATH` environment variable.
```batch
> elist [options] ...
:: [-i|--input ]
:: [-s|--input-separator ] (multi)
:: [-t|--argment-separator ] (multi)
:: [-u|--output-separator ] (multi)
:: separators: default value is new-line (\r\n, \n, \r)
:: [] -> optional argument
:: <> -> argument value
```
### size
```batch
:: get size of list
> elist [options] size
```
```batch
:: get no. of items in your grocery list
> elist -i "cake.milk.butter.parle-g" -s "."
:: get no. of movies in movie list
> type movie_list.txt | elist size
```
### get
```batch
:: get values in list
> elist [options] get [] []
```
```batch
:: get 1st question for Kaun Banega Crorepati
> type kbc.txt | elist get
:: get 2nd question (5th line) in KBC
> type kbc.txt | elist get 4
:: get 4 options for the 1st question (2nd to 5th lines)
> type kbc.txt | elist get 1 5
```
### set
```batch
:: set/overwrite values in list
> elist [options] set [] [] []
```
```batch
:: modify the 1st line in whatsapp code
> type whatsapp.c | elist set "/*" > whatsapp.c
:: modify 5th line in the code
> type whatsapp.c | elist set " * All Duties Reserved." 4 > whatsapp.c
:: empty out the license (lines 1-22) in code
> type whatsapp.c | elist set "" 0 21 > whatsapp.c
```
### add
```batch
:: add/insert values in list
> elist [options] add [] [] []
```
```batch
:: add cooking mutton jhol to the end of your goals
> type goal.txt | elist add "Cooking Mutton Jhol" > goal.txt
:: add kicking vikram to goals in rank 23
> type goal.txt | elist add "Kicking Vikram" 22 > goal.txt
:: add 3 ideas to to goals at 27th position
> type goal.txt | elist -t "#" add "Shocking Sandal#Audio Sandal#Heat Sandal" 26
:: create a 1000 line motivation list
> echo.| elist add "Dream -> Thoughts -> Action" 0 1000 > motiv.txt
```
### remove
```batch
:: remove/delete values in list
> elist [options] remove [] []
```
```batch
:: remove the last location from your tour list
> type tour.txt | elist remove > tour.txt
:: remove 8th item from the tour list
> type tour.txt | elist remove 7 > tour.txt
:: remove 8th to 13th items from the tour list
> type tour.txt | elist remove 7 13 > tour.txt
```
### reverse
```batch
:: reverse part of list
> elist [options] reverse [] []
```
```batch
:: find how a tune sounds when played reverse
> type titanic.tune | elist reverse > titanic.tune
:: reverse a tune from the middle (584th line) to end
> type titanic.tune | elist reverse 583 > titanic.tune
:: reverse only a part of tune (584th to 606th line)
> type titanic.tune | elist reverse 583 606 > titanic.tune
```
### find
```batch
:: find indexes of value in list
> elist [options] find []
```
```batch
:: find the index of a news article
> type news.txt | elist find "Air Force Plane Missing"
:: find the index of a news article, with another possible name
> type news.txt | elist -t ":" find "Air Force Plane Missing:29 Army Men Missing"
```
### replace
```batch
:: find and replace values in list
> elist [options] replace [] []
```
```batch
:: remove Anjali from your call log
> type call.log | elist replace "Anjali" > call.log
:: replace Anjali with Mama in call log
> type call.log | elist replace "Anjali" "Mama" > call.log
:: replace Anjali/Rohini with Mama in call log
> type call.log | elist -t ";" replace "Anjali;Rohini" "Mama" > call.log
:: replace Anjali/Rohini with Mama and Bhouni
> type call.log | elist -t ";" -t "," replace "Anjali,Rohini" "Mama;Bhouni" > call.log
```
### sort
```batch
:: sort list in ascending order
> elist [options] sort
```
```batch
:: sort your friends' birthdays by date (yyyy.mm.dd : name)
> type bday.txt | elist sort > bday.txt
```
[](https://cmdf.github.io)
