Shell

Linux/Unix coreutils command ‘paste’ to merge lines of files

Unix and Linux GNU coreutils command paste can be useful to merge corresponding or subsequent lines of files. Here is simple example of it’s usage: viper@viper-laptop:~$ cat /tmp/test pop pop1 pop2 viper@viper-laptop:~$ cat /tmp/test1 1 2 3 4 viper@viper-laptop:~$ paste /tmp/test /tmp/test1 pop 1 pop1… Read More »Linux/Unix coreutils command ‘paste’ to merge lines of files

Two-way conversion of Unix time (seconds since 1970) and regular time

I found using of Unix time to be very useful in various shell scripts and here are two simple commands to convert Unix/Linux date command to Unix time format and back to regular formating: To convert Unix time to simple (regular) time please use: date… Read More »Two-way conversion of Unix time (seconds since 1970) and regular time