To send an invitation, use krfb at the prompt. Create an invitation and save the node name and password.
Type in kdrc at a shell prompt to connect to the invitation.
You will be asked to authenticate which the originator must do.
Then you will have to type in the password (which the originator noted down from krfb)
sed ‘x; G; /^\(.*\)\n\1$/ d; g; p; d’
Instead of this:
sed ‘$!N; /^\(.*\)\n\1$/!P; D’
The whole file does not have to be read into memory so you can do this on very large files.
$ read -r a b c d < $HOME/txt
$ printf “%s\n” “a=$a” “b=$b” “c=$c” “d=$d”
The order of redirection is important. Redirection is implemented at the stage at which it is executed.
./cmd 1>errors 2>&1
will record everything to errors.
.cmd 2>&1 1>errors
will send stderr to the terminal and stdout to the file errors.
Run the command below in an xterm:
awk ‘!x[$0]++’ filename > outfile