├── LICENSE ├── README.md ├── Version_changes.md ├── code_snippets ├── Dealing_with_duplicates.sh ├── Field_separators.sh ├── Inplace_file_editing.sh ├── Line_processing.sh ├── Multiple_file_input.sh ├── Oneliner_introduction.sh ├── Perl_rename_command.sh ├── Processing_multiple_records.sh ├── Record_separators.sh ├── Two_file_processing.sh └── Using_modules.sh ├── example_files ├── anchors.txt ├── broken.txt ├── colors.txt ├── colors_1.txt ├── colors_2.txt ├── context.txt ├── dept.txt ├── dept_mark.txt ├── dept_name.txt ├── duplicates.txt ├── eqns.txt ├── f1.txt ├── f2.txt ├── f3.txt ├── fruits.txt ├── greeting.txt ├── ip.txt ├── items.txt ├── marks.txt ├── newline.csv ├── para.txt ├── paths.txt ├── purchases.txt ├── repl.txt ├── report.log ├── role.txt ├── sample.json ├── search.txt ├── t1.txt ├── t2.txt ├── table.txt └── uniform.txt ├── exercises ├── Exercise_solutions.md ├── Exercises.md ├── brackets.txt ├── broken.txt ├── concat.txt ├── copyright.txt ├── criteria.txt ├── error.txt ├── expected.md ├── f1.txt ├── fields.txt ├── fw.txt ├── hex.txt ├── idx.txt ├── ip.txt ├── jumbled.txt ├── lines.txt ├── match.txt ├── match_words.txt ├── mixed_fs.txt ├── names.txt ├── oops.txt ├── out.md ├── para.txt ├── perl.md ├── pets.txt ├── quoted.txt ├── result.csv ├── sample.txt ├── sample.xml ├── scores.csv ├── search_terms.txt ├── secrets.txt ├── split.txt ├── table.txt ├── text.txt ├── twos.txt ├── varying_fields.txt └── words.txt ├── images ├── info.svg ├── perl_oneliners_ls.png └── warning.svg ├── perl_oneliners.md └── sample_chapters └── perl_oneliners_sample.pdf /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/README.md -------------------------------------------------------------------------------- /Version_changes.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/Version_changes.md -------------------------------------------------------------------------------- /code_snippets/Dealing_with_duplicates.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/code_snippets/Dealing_with_duplicates.sh -------------------------------------------------------------------------------- /code_snippets/Field_separators.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/code_snippets/Field_separators.sh -------------------------------------------------------------------------------- /code_snippets/Inplace_file_editing.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/code_snippets/Inplace_file_editing.sh -------------------------------------------------------------------------------- /code_snippets/Line_processing.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/code_snippets/Line_processing.sh -------------------------------------------------------------------------------- /code_snippets/Multiple_file_input.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/code_snippets/Multiple_file_input.sh -------------------------------------------------------------------------------- /code_snippets/Oneliner_introduction.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/code_snippets/Oneliner_introduction.sh -------------------------------------------------------------------------------- /code_snippets/Perl_rename_command.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/code_snippets/Perl_rename_command.sh -------------------------------------------------------------------------------- /code_snippets/Processing_multiple_records.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/code_snippets/Processing_multiple_records.sh -------------------------------------------------------------------------------- /code_snippets/Record_separators.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/code_snippets/Record_separators.sh -------------------------------------------------------------------------------- /code_snippets/Two_file_processing.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/code_snippets/Two_file_processing.sh -------------------------------------------------------------------------------- /code_snippets/Using_modules.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/code_snippets/Using_modules.sh -------------------------------------------------------------------------------- /example_files/anchors.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/example_files/anchors.txt -------------------------------------------------------------------------------- /example_files/broken.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/example_files/broken.txt -------------------------------------------------------------------------------- /example_files/colors.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/example_files/colors.txt -------------------------------------------------------------------------------- /example_files/colors_1.txt: -------------------------------------------------------------------------------- 1 | teal 2 | light blue 3 | green 4 | yellow 5 | -------------------------------------------------------------------------------- /example_files/colors_2.txt: -------------------------------------------------------------------------------- 1 | light blue 2 | black 3 | dark green 4 | yellow 5 | -------------------------------------------------------------------------------- /example_files/context.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/example_files/context.txt -------------------------------------------------------------------------------- /example_files/dept.txt: -------------------------------------------------------------------------------- 1 | CSE 2 | ECE 3 | -------------------------------------------------------------------------------- /example_files/dept_mark.txt: -------------------------------------------------------------------------------- 1 | ECE 70 2 | EEE 65 3 | CSE 80 4 | -------------------------------------------------------------------------------- /example_files/dept_name.txt: -------------------------------------------------------------------------------- 1 | EEE Moi 2 | CSE Amy 3 | ECE Raj 4 | -------------------------------------------------------------------------------- /example_files/duplicates.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/example_files/duplicates.txt -------------------------------------------------------------------------------- /example_files/eqns.txt: -------------------------------------------------------------------------------- 1 | a=b,a-b=c,c*d 2 | a+b,pi=3.14,5e12 3 | i*(t+9-g)/8,4-a+b 4 | -------------------------------------------------------------------------------- /example_files/f1.txt: -------------------------------------------------------------------------------- 1 | I ate 3 apples 2 | -------------------------------------------------------------------------------- /example_files/f2.txt: -------------------------------------------------------------------------------- 1 | I bought two balls and 3 bats 2 | -------------------------------------------------------------------------------- /example_files/f3.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/example_files/f3.txt -------------------------------------------------------------------------------- /example_files/fruits.txt: -------------------------------------------------------------------------------- 1 | banana 2 | papaya 3 | mango 4 | -------------------------------------------------------------------------------- /example_files/greeting.txt: -------------------------------------------------------------------------------- 1 | Hi there 2 | Have a nice day 3 | Good bye 4 | -------------------------------------------------------------------------------- /example_files/ip.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/example_files/ip.txt -------------------------------------------------------------------------------- /example_files/items.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/example_files/items.txt -------------------------------------------------------------------------------- /example_files/marks.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/example_files/marks.txt -------------------------------------------------------------------------------- /example_files/newline.csv: -------------------------------------------------------------------------------- 1 | apple,"1 2 | 2 3 | 3",good 4 | guava,"32 5 | 54",nice 6 | -------------------------------------------------------------------------------- /example_files/para.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/example_files/para.txt -------------------------------------------------------------------------------- /example_files/paths.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/example_files/paths.txt -------------------------------------------------------------------------------- /example_files/purchases.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/example_files/purchases.txt -------------------------------------------------------------------------------- /example_files/repl.txt: -------------------------------------------------------------------------------- 1 | 2$1$&3 2 | wise ice go goa 3 | -------------------------------------------------------------------------------- /example_files/report.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/example_files/report.log -------------------------------------------------------------------------------- /example_files/role.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/example_files/role.txt -------------------------------------------------------------------------------- /example_files/sample.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/example_files/sample.json -------------------------------------------------------------------------------- /example_files/search.txt: -------------------------------------------------------------------------------- 1 | brown bread mat hair 42 2 | blue cake mug shirt -7 3 | -------------------------------------------------------------------------------- /example_files/t1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/example_files/t1.txt -------------------------------------------------------------------------------- /example_files/t2.txt: -------------------------------------------------------------------------------- 1 | worse than ever 2 | too bad 3 | -------------------------------------------------------------------------------- /example_files/table.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/example_files/table.txt -------------------------------------------------------------------------------- /example_files/uniform.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/example_files/uniform.txt -------------------------------------------------------------------------------- /exercises/Exercise_solutions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/Exercise_solutions.md -------------------------------------------------------------------------------- /exercises/Exercises.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/Exercises.md -------------------------------------------------------------------------------- /exercises/brackets.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/brackets.txt -------------------------------------------------------------------------------- /exercises/broken.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/broken.txt -------------------------------------------------------------------------------- /exercises/concat.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/concat.txt -------------------------------------------------------------------------------- /exercises/copyright.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/copyright.txt -------------------------------------------------------------------------------- /exercises/criteria.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/criteria.txt -------------------------------------------------------------------------------- /exercises/error.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/error.txt -------------------------------------------------------------------------------- /exercises/expected.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/expected.md -------------------------------------------------------------------------------- /exercises/f1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/f1.txt -------------------------------------------------------------------------------- /exercises/fields.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/fields.txt -------------------------------------------------------------------------------- /exercises/fw.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/fw.txt -------------------------------------------------------------------------------- /exercises/hex.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/hex.txt -------------------------------------------------------------------------------- /exercises/idx.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/idx.txt -------------------------------------------------------------------------------- /exercises/ip.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/ip.txt -------------------------------------------------------------------------------- /exercises/jumbled.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/jumbled.txt -------------------------------------------------------------------------------- /exercises/lines.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/lines.txt -------------------------------------------------------------------------------- /exercises/match.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/match.txt -------------------------------------------------------------------------------- /exercises/match_words.txt: -------------------------------------------------------------------------------- 1 | %whole(Hello)--{doubt}==ado== 2 | just,\joint*,concession<=nice 3 | -------------------------------------------------------------------------------- /exercises/mixed_fs.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/mixed_fs.txt -------------------------------------------------------------------------------- /exercises/names.txt: -------------------------------------------------------------------------------- 1 | Lin 2 | Cy 3 | Ith 4 | -------------------------------------------------------------------------------- /exercises/oops.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/oops.txt -------------------------------------------------------------------------------- /exercises/out.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/out.md -------------------------------------------------------------------------------- /exercises/para.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/para.txt -------------------------------------------------------------------------------- /exercises/perl.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/perl.md -------------------------------------------------------------------------------- /exercises/pets.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/pets.txt -------------------------------------------------------------------------------- /exercises/quoted.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/quoted.txt -------------------------------------------------------------------------------- /exercises/result.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/result.csv -------------------------------------------------------------------------------- /exercises/sample.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/sample.txt -------------------------------------------------------------------------------- /exercises/sample.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/sample.xml -------------------------------------------------------------------------------- /exercises/scores.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/scores.csv -------------------------------------------------------------------------------- /exercises/search_terms.txt: -------------------------------------------------------------------------------- 1 | hello 2 | row 3 | you 4 | is 5 | at 6 | -------------------------------------------------------------------------------- /exercises/secrets.txt: -------------------------------------------------------------------------------- 1 | stag area row tick 2 | deaf chi rate tall glad 3 | Bi tac toe - 42 4 | -------------------------------------------------------------------------------- /exercises/split.txt: -------------------------------------------------------------------------------- 1 | apple,1:2:5,mango 2 | wry,4,look 3 | pencil,3:8,paper 4 | -------------------------------------------------------------------------------- /exercises/table.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/table.txt -------------------------------------------------------------------------------- /exercises/text.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/text.txt -------------------------------------------------------------------------------- /exercises/twos.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/twos.txt -------------------------------------------------------------------------------- /exercises/varying_fields.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/varying_fields.txt -------------------------------------------------------------------------------- /exercises/words.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/exercises/words.txt -------------------------------------------------------------------------------- /images/info.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/images/info.svg -------------------------------------------------------------------------------- /images/perl_oneliners_ls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/images/perl_oneliners_ls.png -------------------------------------------------------------------------------- /images/warning.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/images/warning.svg -------------------------------------------------------------------------------- /perl_oneliners.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/perl_oneliners.md -------------------------------------------------------------------------------- /sample_chapters/perl_oneliners_sample.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/learnbyexample/learn_perl_oneliners/HEAD/sample_chapters/perl_oneliners_sample.pdf --------------------------------------------------------------------------------