mirror of
https://github.com/Erreur32/cheat.git
synced 2024-11-16 17:08:35 +01:00
15 lines
No EOL
452 B
Text
15 lines
No EOL
452 B
Text
# Concat columns from files
|
|
paste file1 file2 ...
|
|
|
|
# List the files in the current directory in three columns:
|
|
ls | paste - - -
|
|
|
|
# Combine pairs of lines from a file into single lines:
|
|
paste -s -d '\t\n' myfile
|
|
|
|
# Number the lines in a file, similar to nl(1):
|
|
sed = myfile | paste -s -d '\t\n' - -
|
|
|
|
# Create a colon-separated list of directories named bin,
|
|
# suitable for use in the PATH environment variable:
|
|
find / -name bin -type d | paste -s -d : - |