Manage a list of strings in Windows Console.
Manage a list of strings in Windows Console.
- Download exe file.
- Copy to
C:\Program_Files\Scripts
.- Add
C:\Program_Files\Scripts
toPATH
environment variable.
> elist [options] <function> <args>...
:: [-i|--input <input list>]
:: [-s|--input-separator <separator>] (multi)
:: [-t|--argment-separator <separator>] (multi)
:: [-u|--output-separator <separator>] (multi)
:: separators: default value is new-line (\r\n, \n, \r)
:: [] -> optional argument
:: <> -> argument value
:: get size of list
> elist [options] size
:: 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 values in list
> elist [options] get [<begin>] [<end>]
:: 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/overwrite values in list
> elist [options] set [<value>] [<begin>] [<end>]
:: 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/insert values in list
> elist [options] add [<values>] [<offset>] [<num>]
:: 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/delete values in list
> elist [options] remove [<begin>] [<end>]
:: 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 part of list
> elist [options] reverse [<begin>] [<end>]
:: 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 indexes of value in list
> elist [options] find [<value>]
:: 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"
:: find and replace values in list
> elist [options] replace [<find value>] [<replace value>]
:: 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 list in ascending order
> elist [options] sort
:: sort your friends' birthdays by date (yyyy.mm.dd : name)
> type bday.txt | elist sort > bday.txt