$ls -l jeffrin ls: cannot access jeffrin: No such file or directory $mkfifo jeffrin $ls -l jeffrin prw-r–r– 1 jeffrin jeffrin 0 Oct 12 00:02 jeffrin $ $ls -d > jeffrin “another terminal” $cat < jeffrin . $ A “FIFO” is a special file type that permits independent processes to communicate. One process opens the …
Author Archives: jeffrin
base64 encoding
$file a.out a.out: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped $base64 a.out > ascii.txt $tail -n 5 -f ascii.txt X19lcnJub19sb2NhdGlvbkBAR0xJQkNfMi4yLjUAX19ic3Nfc3RhcnQAX19nY292X3dyaXRlX3N1 bW1hcnkAX19nY292X3JlYWRfY291bnRlcgBzdHJjcHlAQEdMSUJDXzIuMi41AF9lbmQAZmNsb3Nl QEBHTElCQ18yLjIuNQBzdGRlcnJAQEdMSUJDXzIuMi41AGFjY2Vzc0BAR0xJQkNfMi4yLjUAZndy aXRlQEBHTElCQ18yLjIuNQBfZWRhdGEAZnByaW50ZkBAR0xJQkNfMi4yLjUAZmNudGxAQEdMSUJD XzIuMi41AG9wZW5AQEdMSUJDXzIuMi41AG1rZGlyQEBHTElCQ18yLjIuNQBtYWluAF9pbml0AA== ^C $tail -n 5 -f a.out @ @ @. @> @N @^ @n That was a peice from a.out may …
a simple hack related to xargs
$ls robinsons.iso $ls | grep robinsons.iso | xargs rm $ls robinsons.iso ls: cannot access robinsons.iso: No such file or directory $ xargs – build and execute command lines from standard input This manual page documents the GNU version of xargs. xargs reads items from the standard input, delimited by blanks (which can be protected with …
[x]args build and execute +
$ls robinsons.iso robinsons.iso $ls | grep robinsons.iso | xargs rm $ls robinsons.iso ls: cannot access robinsons.iso: No such file or directory $ xargs – build and execute command lines from standard input This manual page documents the GNU version of xargs. xargs reads items from the standard input, delimited by blanks (which can be protected …
system engineering
Software engineering occurs as a consequence of a process called system engineering.Instead of concentrating solely on software, system engineering focus on a variety of elements, analyzing,designing and organizing those elements into a system that can be a product,a service or a technology for the transformation of information and control. The system engineering process is called …
microscopic organisms
Many of the microscopic organisms that swarm and multiply in our ponds are clearly visible with an ordinary school microscope. A closer look at microscopic organisms may challenge existing ideas about the differences between plants and animals and reinforce key ideas about the importance of each in ecosystems. Reference/source : http://www.practicalbiology.org/areas/introductory/cells-to- systems/microscopic-organisms/ $nospace workethics.txt Remove …
pinky – lightweight finger
$pinky Login Name TTY Idle When Where jeffrin Jeffrin Jose *tty7 00:28 2010-09-27 15:33 :0 jeffrin Jeffrin Jose *pts/0 2010-09-27 15:40 :0.0 jeffrin Jeffrin Jose pts/1 2010-09-27 16:00 :0.0 $pinky jeffrin Login Name TTY Idle When Where jeffrin Jeffrin Jose *tty7 00:28 2010-09-27 15:33 :0 jeffrin Jeffrin Jose *pts/0 2010-09-27 15:40 :0.0 jeffrin Jeffrin Jose …
comm – compare two sorted files line by line
$comm sorta.txt sortb.txt d g comm: file 1 is not in sorted order e s x comm: file 2 is not in sorted order g s n $cat sorta.txt d g e s $cat sortb.txt x g s n $ $cat sorta.txt a b c d $cat sortb.txt a f g h $comm sorta.txt sortb.txt …
Continue reading “comm – compare two sorted files line by line”
nl – number lines of files
$cat workethics.txt Work ethics in QA Fashion $nl workethics.txt > newfile $cat new new newfile $cat newfile 1 Work 2 ethics 3 in 4 QA 5 Fashion $ nl – number lines of files Write each FILE to standard output, with line numbers added. With no FILE, or when FILE is -, read standard input. …
shuf – generate random permutations.
$cat workethics.txt Work ethics in QA Fashion $shuf workethics.txt Work Fashion in QA ethics $shuf workethics.txt ethics QA in Fashion Work $ shuf – generate random permutations. Write a random permutation of the input lines to standard output. Reference/Source : Debian Manual for “shuf”.