Learn to Code via Tutorials on Repl.it!

← Back to all posts
Unix S40 : paste command with clear examples
sasivanga (15)

Session - 40: paste command with clear examples

We can use paste command to join you or more files horizontally by using some delimiter .Default delimiter is tab

We can specify our own delimiter by using -d option

paste -d "," sub.txt fee.txt
java,1000
python,2000
UI,3000
Linux,4000
Delimiter should be only one character if we are providing more than one character it consider first character

paste -d "-----" fee.txt sub.txt 1000-java 2000-python 3000-UI 4000-Linux

For multi charter we need to go for shell script

Comments
hotnewtop