sort – POFTUT

Tagged: sort

0

How To Sort List In Python Programming Language?

Python provides lists structures in order to hold multiple elements in a single variable like an array. Generally same type of data is hold in this elements and we may want to sort them for value or key, incremental or decrementally. In this tutorial we will examine sorting Python List structure in different ways. Example Python List Before starting examples with sort operation we will create a simple list like below....

0

How To Get The Size Of Directory In Linux From Command Line?

While working with Linux we may need to get the size of the specific directory. In GUI there are file managers like Dolphin, Gnome, Nautilus etc. But what if we need to get the size in command line. In this tutorial we will look how to get single or multiple directories sizes and sort them. Find Size Of Directory We will start by simply listing the size of a directory...

0

Linux Bash Pipe Command Usage with Examples For Redirection

Linux Bash provides a lot of useful features and commands. Pipe or | is one of them. Bash provides command line interface facility which mainly used to concatenate command output to another command. Concept In Linux everything is file. This may seem odd but it is. Every command executed will have three type of streams which can be used to provide or output data into and from a command. STDIN (0)...

0

How To Find and List Large Files and Directories In Linux?

One of the important job for System Administrators is finding and deleting large and unneeded files from Linux operating system. In this tutorial we will look how to find, sort and delete large and trash files from Linux distributions like Ubuntu, Debian, Mint, Fedora, CentOS and RHEL etc. Large Files Directories In Linux distributions there are some directories and paths where files generally holds a lot of disk space. These...

0

Python List or Array Tutorial With Examples

Python provides different data structures to store, modify, select, remove data. The most popular data structure is list. List is used to store sequential data in a single variable. Being sequential gives abilities like sort, list, add, index, loop etc. Array Python lists are very similar and provides same functionality of arrays in other languages like C, C++, Java …  Here a list of same functionalities shared by lists and...

0

How To Navigate, List Files and Directories In Windows Command Line With Dir?

Windows operating system provides command line tool named MS-DOS. This command line have different tools and capabilities for daily operations. We will look some simple steps about usage like navigation, list files and directories etc. We will mainly use dir command for this tutorial. Help Help information about dir command can be listed like below.

Change Drive Windows operating systems generally uses drive names for different partitions or disks. Most common...

0

Linux uniq Command Tutorial With Examples

Linux have a lot of tools to make daily work of system administrators easy. uniq is one of them. Uniq is a small tool with limited capabilities. Syntax Syntax is same as other most of the Linux commands.

Help Simple and fast help about the options can be get like below.

Example File While looking various options and features of the uniq command we need some sample text to use...

1

Linux wc Command Word and Line Count Tutorial With Examples

Linux provides a lot of tools for text related operations. wc is one of them. This tool is a little tool less than 10 options. In this tutorial we will look how  to count bytes? How count words? How to count Lines? and How to use wc with other Linux commands like find and grep? Syntax Syntax of wc is like below.

Help Fast help about the wc can be...

1

Linux Sort Command With Examples

Linux provides a lot of useful tools for system administrators. These tools gives the administrator a developer power so the administrator can easily change, modify, filter, sort the data. sort is an other little but powerful tool. In this tutorial we will look different usage examples of sort. Example File We will use following simple example file named fruits.txt

Syntax sort command will use following syntax.

Simply Sort Sort...

1

How To Sort Python Dictionary By Value?

We have a dictionary which is read from a file. One field is string other field is number. String fields are unique and used as keys. Sorting by keys is easy but how can we sort them by values Our Dictionary We have the following dictionary which is consist of string and numbers.

By the way we are using python interpreter to make things more interactive and easy Sort...

Enjoy this blog? Please spread the word :)