$echo “hello” > –test $cat –test cat: unrecognized option ‘–test’ Try ‘cat –help’ for more information. $cat — –test hello $
Tag Archives: cat
The Linux Foundation Video Site:: BASH Quick Tip – Reversing
[youtube https://www.youtube.com/watch?v=UWKmWcqOodY?rel=0&w=560&h=315]
cat + grep + wc and pipe operator
A UNIX Command $ls 1984 2001 2004 2007 2010 TED-talks-grouped-by-year-in-high-quality.metalink 1990 2002 2005 2008 2011 ted_urls 1998 2003 2006 2009 ted_download.sh $cat TED-talks-grouped-by-year-in-high-quality.metalink | grep -w url | wc -l 980 $ UNIX Explanation This command finds out the number of lines with the word “url” in the file TED*.
cat — tac
$cat x00 A for Apple. B for Baby. $cat x01 C for Cat. D for Donkey. $tac x00 x01 B for Baby. A for Apple. D for Donkey. C for Cat. $ tac – concatenate and print files in reverse