bash

expand Loads a file and converts tabs to spaces. github The file in jupyter notebook format on github is here google colaboratory To run it on google colaboratory here expand/expand_nb.ipynb) environment The author’s OS is macOS, and the options are different from those of Linux and Unix commands. When you actually run the command, the leading ! and %%bash in the first line. !sw_vers ProductName: Mac OS X ProductVersion: 10.14.6 BuildVersion: 18G95 !
cut Reads a text file and splits it by a specific string. Extract the values of a specific column from a tabbed file, for example. NAME cut -- cut out selected portions of each line of a file SYNOPSIS cut -b list [-n] [file ...] cut -c list [file ... cut -c list [file ...] cut -f list [-d delim] [-s cut -f list [-d delim] [-s] [file ...]] github The file in jupyter notebook format on github is here .
echo Print a string to standard output. github The file in jupyter notebook format on github is here . google colaboratory To run it in google colaboratory here /echo_nb.ipynb) Environment The author’s OS is macOS, and the options are different from those of Linux and Unix commands. When you actually run the command, the leading ! and %%bash in the first line. !sw_vers ProductName: Mac OS X ProductVersion: 10.14.6 BuildVersion: 18G95 !
paste Combine text files column-wise, cat column-board. NAME paste -- merge corresponding or subsequent lines of files SYNOPSIS paste [-s] [-d list] file ... ``` ### github - The file in jupyter notebook format on github is [here](https://github.com/hiroshi0530/wa-src/blob/master/article/library/bash/paste/paste_nb.ipynb). ### google colaboratory - To run it in google colaboratory [here](https://colab.research.google.com/github/hiroshi0530/wa-src/blob/master/article/library/bash/) paste/paste_nb.ipynb) ### environment The author's OS is macOS, and the options are different from those of Linux and Unix commands. If you want to run the command in real life, you need to replace the leading !
cat Concatenates files. Often used to display the contents of a file. Often used to display the contents of a file, or to create a multi-line file, such as a hea document. NAME cat -- concatenate and print files SYNOPSIS cat [-benstuv] [file ...] github The file in jupyter notebook format on github is here . google colaboratory To run it in google colaboratory here cat_nb.ipynb) environment The author’s OS is macOS, and the options are different from those of Linux and Unix commands.
split Split a file. NAME split -- split a file into pieces SYNOPSIS split [-a suffix_length] [-b byte_count[k|m]] [-l line_count]] [-p pattern] [file [name]]] github The file in jupyter notebook format on github is here . google colaboratory To run it in google colaboratory here split/split_nb.ipynb) environment The author’s OS is macOS, and the options are different from those of Linux and Unix commands. In linux, you can specify the number of splits with the -n option, but as you can see in the man page, there is no such option in FreeBSD (the original OS of macOS).
unexpand Converts spaces in the given file to tabs. Print the result to the standard output. NAME expand, unexpand -- expand tabs to spaces, and vice versa SYNOPSIS expand [-t tab1,tab2,... ,tabn] [file ...]. unexpand [-a | -t tab1,tab2,... ,tabn] [file ...]] github The file in jupyter notebook format on github is [here](https://github.com/hiroshi0530/wa-src/blob/master/article/library/bash/unexpand/unexpand_nb . ipynb) google colaboratory If you want to run it in google colaboratory [here](https://colab.research.google.com/github/hiroshi0530/wa-src/blob/master/article/library/bash/ unexpand/unexpand_nb.ipynb) environment The author’s OS is macOS, and the options are different from those of Linux and Unix commands.
ls Displays files and directories. There are many options as shown below, so it is impossible to learn them all. There are so many options that it is impossible to learn them. NAME ls -- list directory contents SYNOPSIS ls [-ABCFGHLOPRSTUW@abcdefghiklmnopqrstuwx1] [file ... github The file in jupyter notebook format on github is here . google colaboratory To run it in google colaboratory here ls_nb.ipynb) Environment The author’s OS is macOS, and the options are different from those of Linux and Unix commands.
sort Reads a file and sorts it in descending or ascending order. NAME sort -- sort or merge records (lines) of text and binary files SYNOPSIS sort [-bcCdfghiRMmnrsuVz] [-k field1[,field2]] [-S memsize] [-T dir] [-t char] [-o output] [file ...]] sort --help sort --version github The file in jupyter notebook format on github is here . google colaboratory To run it in google colaboratory [here](https://colab.research.google.com/github/hiroshi0530/wa-src/blob/master/article/library/bash/sort /sort_nb.ipynb) Environment The author’s OS is macOS, and the options are different from those of Linux and Unix commands.
tr Deletes or replaces a string. The strings before and after the replacement will be 1:1, so the length of the strings must be the same. This is the standard input. TR(1) BSD General Commands Manual NAME tr -- translate characters SYNOPSIS tr [-Ccsu] string1 string2 tr [-Ccu] -d string1 tr [-Ccu] -s string1 tr [-Ccu] -ds string1 string2 github The file in jupyter notebook format on github is here .