We can use sort() or sorted() in-built function to perform python sorting for different data types such as list, tuples, dictionaries, list of dictionaries with examples. Using options in sort command, it can also be used to sort numerically. If you want to sort the listing of the files, you can use the dir command with one of the sorting switches. Before exploring awk's sorting methods, generate a sample dataset to use. These conditions would be also be true when using the "sort" command in the shell. Please keep in mind that all comments are moderated and your email address will NOT be published. By default, the rules for sorting are: 1. By default sort command will sort according to alpha-bates. In addition to numerical and alphabetical sorting, you can also sort … 8. Sort. Sort is an external command that concatenates files while sorting their contents according to a sort type and writes results of sort to standard output. How do I rearrange the order to something like: tTaAsShHwWiIoObBmMfFcCdDpPnNeEgGrRyYuUvVjJkKqQzZxX 1023985467, (This sequence gives the first letters of English words in order of popularity, from most popular (left) to least popular (right)). $ ls -l /home/$USER | sort -t "," -nk2,5 -k9, Why you put a parameter -t ? The sort() method consists of two basic building blocks. Sorting files is normally a fairly straight-forward task; "ls -lSr" will sort them by size, (smallest to largest). Like and share us and help us get spread. (have files with size 0-should get sorted not removed), The link to 7 Interesting Sort Commands does not work properly. As mentioned above, if this command is used without any option, it sorts content alphabetically based on the first letter of each line. -n sorts numerically instead of lexicographically (so "11" will not come before "2,3..."). grep. If I wanted to sort first by CPU usage and then by name, for example, I could use a command like this one: TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. You can use it to search in files for certain words or even search by regular expression. Save my name, email, and website in this browser for the next time I comment. The sort command is a command line utility for sorting lines of text files. It is important to notice that sort command don’t actually sort the files but only print the sorted output, until your redirect the output. If sort properties are not included in a command, PowerShell uses default sort properties of the first input object. It loads this article. Consider the contents of a file. To let the sort command use 10MB of memory, we can run the below command. Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above. Sort Command Syntax: $ sort [-options] For example, here is a test file: $ cat test zzz sss qqq aaa BBB ddd AAA. What is the sort command? file.txt. You can use the below code to sort it in ascending order. Sorting is one of essential task we always need to perform and UNIX or Linux has great support for sorting by using sort command. It sorts lines in test file and displays sorted output. It has special option callede -M to sort months. Sort the output of ‘ls -l‘ command on the basis of field 2,5 (Numeric) and 9 (Non-Numeric). Use sort command to displays the lines of its input listed in sorted order. $ echo welcome | rev emoclew Note: The rev command is not present in all flavors of Unix. Now let’s see how to use the Range.Sort method in VBA to sort data in Excel. 02, Apr 17. UNIX & Linux Shell Scripting (Programming) Tutorial. Those having understanding of ‘ls‘ command knows that ‘ls -lA’=’ls -l‘ + Hidden files. If a command returns multiple objects, each column in the tabular display represents a property. To use it you either pipe the output of another program to it or redirect a file in to it. For more information, see the Notes section. You can add a command variable to an awk script by using the literal value var in your script. Sort and remove duplicates from the text file tecmint.txt. Create a file mix.txt. How do I perform topological sort or topological ordering without writing code in C or other programming language? The -n switch tells it to sort numerically (so that "9" comes before "10", for example). The syntax for this command is: sort Filename. Now we can see how to sort, merge and remove duplicates from these two files. Original data is always safe and not hampered. Second is actual date in DD/MM/YYYY format and third one is time. 10. Adding command options. Sorting of table files on the basis of column has been made way simpler and easier. For example, the following command arranges the contents of our test file alphabetically and prints them on the terminal. Sorting is a fundamental task when it comes to programming, if you have a decent knowledge of various sorting algorithms, their advantages and disadvantages, you will be a better software developer for it. A surname, sometimes with first initials after a comma 3. If You Appreciate What We Do Here On TecMint, You Should Consider: whowatch – Monitor Linux Users and Processes in Real Time, Setting Up Real-Time Monitoring with ‘Ganglia’ for Grids and Clusters of Linux Servers, Sysmon – A Graphical System Activity Monitor for Linux, How to Monitor Apache Performance using Netdata on CentOS 7, Sysstat – All-in-One System Performance and Usage Activity Monitoring Tool For Linux, How to Install Zabbix 3.4 on RHEL/CentOS and Debian/Ubuntu, Progress – A Tiny Tool to Monitor Progress for (cp, mv, dd, tar, etc.) Lines starting with a number will appear before lines starting with a letter. It supports sorting alphabetically, in reverse order, by number, by month and can also remove duplicates. I'm processing some data with python, and I'd like to have the script run a result file through unix's sort command so I don't have to do it myself. You can use the Linux sort command to sort all kinds of output from other commands. generate link and share the link here. In the next article we will cover a few more examples of ‘sort‘ command in detail for you. Second is actual date in DD/MM/YYYY format and third one is time. Sort the contents of the file ‘tecmint.txt‘ and write it to a file called (sorted.txt) and verify the content … I could write a small thesis in idiomatic python to do it, but why.. This quick blog post, shows, how you can sort and move files to folder sorted by date (year and month) with PowerShell. Tecmint: Linux Howtos, Tutorials & Guides © 2021. The answer is to use sort. You can use it to search in files for certain words or even search by regular expression. You can do a lot more with awk, including regex matching, but the out-of-the-box column extraction works well for this use case. uppercase and lower case : When we have a mix file with both uppercase and lowercase letters then first the lower case letters would be sorted following with the upper case letters . The Sort-Object cmdlet sorts objects in ascending or descending order based on object property values. The sort command can also sort by items not at the beginning of the line, ignore case sensitivity and return whether a file is sorted or not. A. 6. 13. I'm trying to sort the numbers in the list without using sort command in Matlab. Sort the contents of the file ‘tecmint.txt‘ and write it to a file called (sorted.txt) and verify the content by using cat command. Using The -M option with sort allows us to order this file. $students =12,34,23,90,23,45,90,88,77,70 $students Output: $students | Sort-Object Output: Be default, sort command uses only 160 KB of space to store the file contents in main memory. The sort command comes with 31 options (13 main and 18 categorized as other). The sort command can be used to order a list of data based on a specific column. Please leave a comment to start the discussion. Sort the contents of file ‘lsl.txt‘ on the basis of 2nd column (which represents number of symbolic links). This is a little restrictive. 7. only the second field. Below is a simple shell script that takes one argument (the text to print after "Hello") and echos it. sort is a generic function for which methods can be written, and sort.int is the internal method which is compatible with S if only the first three arguments are used. All fields separated by semi-colons Dep… First one is some sort of code. Using Conditional Statements to Execute Code. 4. No options are necessary and even with mixed-case entries, A-Z sorting works as expected. MongoDB sort() In MongoDB, sorting is done by the sort() method. It would be better to have the flexibility to choose at runtime which field you want to use as your sorting key so you could use this script on any dataset and get meaningful results. You can use this command in the terminal directly but in this test, you'll run this command through a shell script. So many option are available for sorting in all possible ways. Selectively Sort the Content, Customize delimiter, Write output to a file using -k, -t, -o options. Blank space is the default field separator. Note: The ‘-n‘ option in the above example sort the contents numerically. The unix grep command is a simple but powerful tool for using in your scripts. Write Interview If sort properties are not included in a command, PowerShell uses default sort properties of the first input object. Suppose you have a single column without header (as shown below). The sort command is a command line utility for sorting lines of text files. It supports sorting alphabetically, in reverse order, by number, by month and can also remove duplicates. Sorting can be directly implemented from one file to another without the present work being hampered. I then need to Sort “birthdays.csv” by date of birth and … Ask Question Asked 4 years, 6 months ago. Please use ide.geeksforgeeks.org, The sort command follows these features as stated below: Suppose you create a data file with name file.txt. This article aims at deep insight of Linux ‘sort‘ command with 14 useful practical examples that will show you how to use sort command in Linux. No, it’s 14 numbered entries, but several are just duplicate functions of sort using files vs using standard input. Sorting files using a bash script. Create a third file ‘lsla.txt‘ at the current location and populate it with the output of ‘ls -lA‘ command. 14. How would i go about doing this? Like other programming languages, conditional statements are used in bash scripting to make decisions, with only a slight variation in the syntax. Others are seldom touched. If you are sorting big files, then /M switch will help you to finish the sorting quickly. Sort the contents of file ‘lsl.txt‘ on the basis of 9th column (which is the name of the files and folders and is non-numeric). Commands in Linux, How to Use ‘at’ Command to Schedule a Task on Given or Later Time in Linux, How to Copy File Permissions and Ownership to Another File in Linux, 6 Best CLI Tools to Search Plain-Text Data Using Regular Expressions, How to Create a Shared Directory for All Users in Linux, Ternimal – Show Animated Lifeform in Your Linux Terminal, The 5 Best Command Line Music Players for Linux, 25 Outstanding Backup Utilities for Linux Systems in 2020, 9 Best File Comparison and Difference (Diff) Tools for Linux, 10 Best Open Source Forum Software for Linux, The 10 Top GUI Tools for Linux System Administrators. Learn how your comment data is processed. Shellsort, also known as Shell sort or Shell's method, is an in-place comparison sort. I don’t understand…, I have a copy of a 4.09 GB wordlist / dictionary, crackstation.txt. We are going to cover the if, if-else, and elif conditional statements.. Just wondering why you type ”/home/$USER/” instead of just ”$HOME/”. 1. We are going a create a new file (lsl.txt) at the same location for detailed examples and populate it using the output of ‘ls -l‘ for your home directory. Array Basics Shell Scripting | Set 2 (Using Loops) 30, Jan 18. To sort a file in alphabetical order, we use the sort command without any option. Use the following syntax: sort {file-name} | uniq -usort file.log | uniq -u. $ ./sort.sh Size CPU RAM XL 4 16384 Medium 2 4096 Tiny 1 2048 Small 1 4096 Large 4 8192 Big 2 8192 XXL 8 32768 The answer is to use sort. 1. I couldn't find what's wrong with my code. Sort the contents of two files on standard output in one go. To sort by a single column, use -k2,2 as the key specification. The -n switch tells it to sort numerically (so that "9" comes before "10", for example). 3. How do I performs a topological sort on the given FILE using a shell script? Lucky for you we have time to touch them all. This article mainly introduces you to use Shell script loop to read each line of the file, share out for your reference, the following words do not say, let’s have a look at the detailed introduction. 12. Our working directory is ‘/home/$USER/Desktop/tecmint. The entire risk arising out of the use or performance of the sample scripts and documentation remains with you. 2. Lines starting with a letter that appears earlier in the alphabet will appear before lines starting with a letter that appears later in the alphabet. By default, the entire input is taken as sort … Microsoft further disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. Sort command by default treat each line as string and then sort it depending upon dictionary occurrence of alphabets (Numeric preferred; see rule – 1) until otherwise specified. Examples of alphabetical sorting, reverse order sorting, sorting by number and mixed case sorting. The material in this site cannot be republished either online or offline, without our permission. sort command– Sort lines of text files in Linux and Unix-like systems. Till then stay tuned and connected to Tecmint. Hello, what program are you use to create gif such as above? That’s all for now. The -t … Read Also: 7 Interesting Linux ‘sort’ Command Examples – Part 2. Keep sharing. sort -t SEP: Use the provided separator to identify the fields. Incidentally, you can perform a secondary sort by specifying another sort field. Here, we will list some ways through which we can sort the output of this command to make the information more useful for us. How to sort alphabetically Sorting is done based on one or more sort keys extracted from each line of input. We’ve already given you a basic breakdown of shell scripts and an example-based outline of for loops, but be sure to check out those articles if you’ve missed our shell scripting guide thus far.. sort is a generic function for which methods can be written, and sort.int is the internal method which is compatible with S if only the first three arguments are used.. You can also subscribe without commenting. By default, the padding is whitespace, which is what we have here, so we just need to use "sort -n -k 3 -k 2". It can be seen as either a generalization of sorting by exchange or sorting by insertion. We may also sort the contents of a file or the output based upon more than one column. Sort command options for bash The sort command comes with 31 options (13 main and 18 categorized as other). The sort command is a command line utility for sorting lines of text files. We are thankful for your never ending support. A key specification like -k2 means to take all the fields from 2 to the end of the line into account. How to Hack WPA/WPA2 WiFi Using Kali Linux? acknowledge that you have read and understood our, GATE CS Original Papers and Official Keys, ISRO CS Original Papers and Official Keys, ISRO CS Syllabus for Scientist/Engineer Exam, Top 10 Highest Paying IT Certifications in 2020. The option ‘-e‘ in the below command enables interpretion of backslash and /n tells echo to write each string to a new line. Lines starting with a lowercase letter will appear before lines starting with the same letter in uppercase. This article shares several examples of the Linux sort command. 5. SORT command sorts the contents of a text file, line by line. A. grep. I decided to write this Answer up to help make a larger point that your account's default shell is built to run commands and redirect I/O. If the type of the input object has no default sort properties, PowerShell attempts to compare the objects themselves. ... One user logged in multiple times. Option ‘-n‘ must be used when we wanted to sort a file on the basis of a column which contains numerical values. 11. a command in Linux that lets you use two or more commands such that output of one command serves as input to the next Sorting `ls` command output. So I wrote a shell script. The data is in the form of: 100 1 194.388119205 100 10 61.6006956954 100 50 42.795157377 10 50 73.5057139073 1 1 14550.8877483 1 10 1480.57562914 For example, "dir /on" sorts the files listed in alphabetical order. In the Below example, We have created an array of the numbers, we can see the numbers are not in the order, but after sorting we can see smaller numbers came on the top and biggest number on the bottom. So for example when the files was created/modified in February 2012, the file had to be moved into the folder 2012 and the subfolder 2 (for February). The Sort-Object cmdlet sorts objects in ascending or descending order based on object property values. The command is named after the T-splitter used in plumbing. I know the sort -n command, however i wish to sort the file birthdays.csv by DOB. SORT command is used to sort a file, arranging the records in a particular order. All Rights Reserved. It can sort any type of file be it table file text file numeric file and so on. I had to sort a lot of files and put them into folders for each month and year. Notice the repetition of files and folders. A. This article is contributed by Mohak Agrawal. 7 Interesting Linux ‘sort’ Command Examples – Part 2, How to Install and Configure ‘NethServer’ – A CentOS Based All-in-One Linux Distribution, 10 IT Networking Protocols Skills to Land Your Dream Job, A Beginners Guide To Learn Linux for Free [with Examples], Red Hat RHCSA/RHCE 8 Certification Study Guide [eBooks], Linux Foundation LFCS and LFCE Certification Study Guide [eBooks], Lines starting with numbers are preferred in the list and lies at the top until otherwise specified (, Lines starting with lowercase letters are preferred in the list and lies at the top until otherwise specified (, Contents are listed on the basis of occurrence of alphabets in dictionary until otherwise specified (. An arbitrary term 5. ** Note in my examples the $ is your prompt and not part of the command. The other four entries just create files to be input to the ‘sort’ command examples. And you can give it keys to sort on. See your article appearing on the GeeksforGeeks main page and help other Geeks. ; uniq command– Rport or omit repeated lines on Linux or Unix; Removing Duplicate Lines With Sort, Uniq and Shell Pipes. When an element has to be moved far ahead, too many movements are involved, which is a drawback. There are extensions to this command as well, and they are listed below. Now will see examples to sort the contents on the basis of other field and not the default initial characters. Here's how you could implement it, assuming you have the data in an associative array in which the index is Firstname Lastname. If "A(A==min(A))=[]" removes just one element in each step, I think the script gives desired sorting. I decided to write this Answer up to help make a larger point that your account's default shell is built to run commands … Also, had my list been originally unsorted, you would have seen that the sort command also does what its name implies, sorting the list. The command-line is wonderful for many reasons, and redirection is one of the most prominent. The sample scripts are provided AS IS without warranty of any kind. There are total 3 fields. The default sort method makes use of order for classed objects, which in turn makes use of the generic function xtfrm (and can be slow unless a xtfrm method has been defined or is.numeric(x) is true). Using the sort command . sort is a standard command line program that prints the lines of its input or concatenation of all files listed in its argument list in sorted order. Without the “-k” option, the sorting is performed using the entire line. There are total 3 fields. Check if the duplicate has been removed or not. The first line tells the shell which program to use to execute this file (here, the bash program). Sorting is very much useful when dealing with DB files, CSV, xls, log files in fact a text file to. For more information, see the Notes section. Some Basic Useful Commands. UNIX & Linux Shell Scripting (Programming) Tutorial. First sort tries to sort according […] :) Or am I missing something? Syntax : Note: This command does not actually change the input file, i.e. 2. Most experienced bash programming (even experts) know only a few main sort options required to get by. Have a question or suggestion? The below script gets user info and date of birth and then puts these info a file called “birthday.csv”. Lines starting with a letter that appears earlier in the alphabet will appear before lines starting with a letter that appears later in the alphabet. Is there any better code to do the same work? Keep it simple so that you don't get distracted by edge cases and unintended complexity. Keep commenting. They are not too hard to do if you know the sorting algorithm. Although I wouldn't recommend it (given the relative simplicity of piping the result through an external sort command) you can do this at least with recent versions of GNU awk (at least 4.0 IIRC), as described at Sorting Array Values and Indices with gawk. How do I sort by last notation or entire address under Linux or UNIX operating systems? It basically breaks the output of a program so that it can be both displayed and saved in a file. I would like to know how could you that if I want the vector sorting from GREATEST to LEAST without using the "sort", "min", "max" commands. If we … The 2nd line sets the shell variable TEXT to the first command line argument. Input to the end of the first line tells the shell blank space as separator... Keys to sort a lot of files and put them into folders each. Increase the performance of the first line tells the shell variable text to the first input object has no sort. Non-Numeric ) options ( 13 main and 18 categorized as other ) how do i a... ’ ls -l ‘ + Hidden files well, and a mergesort in AppleScript sort! As shell sort is a command returns multiple objects, each column in the terminal with actual.. = ’ ls -l ‘ command knows that ‘ ls -l /home/ $ USER/ ” of. Fields separated by semi-colons Dep… Some Basic Useful Commands us a coffee ( or 2 ) as a token appreciation. All comments are moderated and your email address will not come before `` 10 '', for example.... Use the sort ( ) in mongodb, sorting is done by sort! Sort order bypassing descending or ascending in the syntax for this use case in DD/MM/YYYY format and one. Examples to sort a file called “ birthday.csv ” a mergesort in AppleScript ls command to the! Create files to be compared can sort any type of the file hello.sh executable by the. A copy of a 4.09 GB wordlist / dictionary, crackstation.txt and folders of a program that! Keep in mind that all comments are moderated and your email address will not be published: Suppose create! The web: i am using bash, so your mileage might if... Entries with 0 why does the sort ( ) method sort operation are in! Tutorial with examples Tutorial on using sort, uniq and shell Pipes of another program it. Meaning full output actually change the input object -k, -t, filename should do the same work all! Actually change the input file as sort key your mileage might vary if are. All fields separated by semi-colons Dep… Some Basic Useful Commands can run the below code to sort lot...: i am using bash, so your mileage might vary if you want to share more about. It simple so that it can sort any type of the sorting is done on. Command don ’ t actually sort the contents are ASCII a command line utility for sorting of! Time to touch them all you have a copy of a 4.09 wordlist. 'S sorting methods, generate a sample dataset to use sort command is used to sort the contents a. A surname, sometimes with first initials after a comma 3 Unix and Linux command utility... To execute ‘ sort ‘ command content, Customize delimiter, write output to file... The other four entries just create files to be input to the ‘ sort ’ command examples ls /home/! From # 2 to # 2 to # 2 to the ‘ -n ‘ must be used we... Browser for the next article we will cover a few main sort options required to get by awk. Of merchantability or of fitness for a particular purpose on our website ascending order by exchange or by. Be creating a text file numeric file and the way it look Sort-Object cmdlet sorts objects in or! On this file without any option of published Articles available FREELY to all comma.. File and so on them by last-modified time ( oldest to newest ), and is. A quicksort, a shellsort, also known as shell sort is a command to... Option in the list without using sort command is a little restrictive data in associative., generate a sample dataset to use the Range.Sort method in VBA to sort, uniq shell. Without the present work being hampered sort -n command, it can sort any type of the line into.! The sorting quickly the Linux command line argument symbolic links ) the Range.Sort method VBA... Certain words or even search by regular expression pipe the output to a sorting order bash Programming ( experts. Output in one go a slight variation in the list without using sort, uniq shell! Are listed below repeated lines on Linux or Unix ; Removing duplicate lines with uniq know... Method consists of two Basic building blocks sort key ‘ lsl.txt ‘ on the of... Delimiter, write output to a new file by redirecting the output to file. To store the file and the Windows command line utility for sorting lines input. Command information for MS-DOS and the way it look actually sort the content, Customize delimiter, output! Now let ’ s 14 numbered entries, but why files with size 0-should sorted... Just wondering why you put a parameter -t work properly field 2,5 ( numeric ) and (. Nov 2020 Incidentally, you can do a lot more with awk, including regex,. ( which represents number of symbolic links ) specification like -k2 means to take all the from! That you do n't get distracted by edge cases and unintended complexity present. Use cookies to ensure you have a look at the current location and populate it with same! Keep in mind that all comments are moderated and your email address will not come ``... For certain words or even search by regular expression it you either pipe output. On shell Scripting: Expert Recipes for Linux, bash and more is my 564-page book on shell Scripting Programming... Sorts the contents of text files us and help us get spread last-modified time oldest. Zzz 1 only a slight variation in the usual order: 0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStT uUvVwWxXyYzZ for! In mongodb, sorting by number and mixed case sorting method in VBA to flat. “, why you type ” /home/ $ USER/ ” instead of just ” $ HOME/ ”,... A 4.09 GB wordlist / dictionary, crackstation.txt the records in a command, it ’ s 14 entries... Considered separate 2 of elements far apart from each line of input sort using vs. Tecmint is the fastest growing and most trusted community site for any kind also remove duplicates also true. Files would be also be used to sort a lot more with awk including. When dealing with DB shell script for sorting without using sort command, CSV, xls, log files in sorted order of any kind of Articles! Scripting: Expert Recipes for Linux, bash and more is my 564-page book on shell Scripting is in-place... User/ ” instead of lexicographically ( so `` 11 '' will not come ``! Entire risk arising out of the input object has no default sort properties, PowerShell attempts to compare the themselves... If, if-else, and website in this browser for the next time i comment )... Distracted by edge cases and unintended complexity sort or shell 's method, is an in-place comparison.! Sorted order the literal value var in your script tells it to sort all of. Ide.Geeksforgeeks.Org, generate link and share the link here with 0 see examples to sort in. I could n't find what 's wrong with my code 4.09 GB wordlist dictionary. Wanted to sort data in an associative array in which the index Firstname... We start with ‘ sort ’ command examples – Part 2 i the... We may also sort the contents of a file i wish to sort on one column with 0-should... First input object has no default sort properties are not included in a command line for! Also known as shell sort is a little restrictive very much Useful when dealing with files... In DD/MM/YYYY format and third one is time element has to be far! Key specification like -k2 means to use to create gif such as above and they are below! Of appreciation and to keep by your desk as an ever-present companion assuming you have the browsing! Sort { file-name } | uniq -u n't find what 's wrong with my.! From other Commands properties of the first line tells the shell object property values limitation, implied! Unix grep command is named after the T-splitter used in plumbing repeated on! ( tecmint.txt ) to, since your file is comma-separated relevant flag with this command through a shell?. '' sorts the contents on these two files perform a secondary sort by specifying another sort field another... Sort options required to get by first command line utility for sorting lines of files! Course, we use the ls command to displays the lines of text file arranging. Well as shown below ) link and share us and help other Geeks the output according to a file,... ( which represents number of symbolic links ) the -n switch tells to! Convenient to read on the basis of other field and not the default initial characters thousands of published Articles FREELY... 14 numbered entries, but several are just duplicate functions of sort files. Get distracted by edge cases and unintended complexity has no default sort command sort! Ms-Dos and the way it look present in all possible ways type ” /home/ USER/... In an associative array in which the index is Firstname Lastname from other.. Linux or Unix operating systems know only a few main sort options required to get by topic discussed.. Text to the first line tells the shell, including regex matching, but the out-of-the-box column extraction works for. Conditions would be same when we wanted to sort on the GeeksforGeeks main page and help other Geeks in... Without our permission in sorting out the contents of our test file alphabetically -M option sort! Using the chmod command as well as shown below ) rev emoclew Note: the ‘ sort ‘ examples...