Shell

(NEWEST POST)
Dual printing Multiplexed printing is missing from all Unix/Linux printing systems that I know of. If you want to print to printer "Main" and have the output appear on two different physical printers, there's no way to specify that when creating "Main". I don't mean printer classes, where you want "Main" to pick an available printer from a pool. I mean where you want one print command to appear on two or more physical devices.
A mistaken grep A recent post at Unix.com was from someone having difficulty with "grep". This happened to be on Mac OS X, but it really could have happened almost anywhere, even on Windows. The poster was trying to grep a string from a Neo Office document and of course not getting great results.
Sort -u vs. uniq I have sometimes seen people use a pipeline that includes "sort | uniq". The result of that is no different than just adding a -u flag to sort and absolutely requires more time and processing power - not that it usually matters; unless the input is humongously long, you'd need to run them through "time" to spot any difference. So why use "uniq"?


Unix Cartoons

Unix Crossword Puzzles

Unix Consultants

Unix Skills Tests



Title Date Comments
Freeing disk space with >   2009 11  2009/11/20 20:23 TonyLawrence

Sort -u vs. uniq   2009 11  2009/11/16 20:04 TonyLawrence

Awk vs. Perl   2009 11  2009/11/09 21:43 TonyLawrence

Using color in shell scripts (Linux, Mac OS X)   2009 11 

Prevent deletion or moving of files   2009 10 

Plenty of space here   2009 10  2009/10/21 19:59 MikeHostetler

Create syntax highlighted PDF and HTML files from C or perl   2009 10  2009/10/05 16:07 TonyLawrence

Vim: edit with vim   2009 10  2009/10/05 13:05 Peter

Network Time Protocol - get atomic clock's precision from the Internet   2009 09  2009/09/23 17:59 TonyLawrence

Print file listings from the command line   2009 00  2009/09/17 16:20 TonyLawrence

Take Control of the Mac Command Line with Terminal   2009 05  2009/05/05 22:45 drag

Removing duplicate files   2009 04  2009/04/19 10:43 TonyLawrence

 
 
 
 
Shell script used time   2009 04 

Breaking out of a script   2009 03 

A mistaken grep   2009 02  2009/03/08 23:35 TonyLawrence

The Linux of our Understanding   2009 02  2009/02/26 09:02 bob4linux

Find with -execdir   2009 02  2009/02/19 18:04 TonyLawrence

Power Text Pasting with JumpCut and pbcopy   2008 12  2008/12/30 00:32 TonyLawrence

Bash Brace Expansion   2008 04  2008/04/22 13:05 BigDumbDinosaur

One Long Command Line   2008 03 

Empty the Trash   2008 01 

Analyzing web logs with grep   2008 01  2008/01/18 23:44 BigDumbDinosaur

opensnoop (Mac file open watcher)   2007 12 

sandbox-exec (Mac sandbox wrapper)   2007 12  2009/03/02 23:53 anonymous

Writing a Twitter getter Widget   2007 12 

Power failure changes my habits   2007 12 

Dual printing   2007 12 

Improving Leopard's QuickLook   2007 12  2009/05/13 18:15 krimb1

Background tasks - Why?   2007 01 

Using sh -c with find   2007 01 

Finding large files   2006 12  2009/03/03 10:12 anonymous

Wrapper scripts   2006 12 

Numbering Lines   2006 11  2008/03/10 11:10 TonyLawrence

case conversion in bash script??   2006 08  2009/06/08 07:10 anonymous

Bash typecasting   2006 08  2009/02/19 18:07 TonyLawrence

Linux|Unix phrasebook   2006 07  2006/07/02 13:09 TonyLawrence

Continuation Lines   2006 06  2006/06/21 14:33 BigDumbDInosaur

Bash HISTCONTROL   2006 05  2008/06/09 01:18 BigDumbDinosaur

Bash auto_resume   2006 04  2006/04/20 10:29 TonyLawrence

Recursive chown   2006 03  2009/02/27 17:50 OnkarJoshi

Go Fish: The Friendly Interactive Shell   2006 02 

How shells call other programs   2006 02 

Clix is a learning opportunity   2005 12 

File date comparison   2005 11  2005/11/30 23:20 TonyLawrence

Undoing bad archives   2005 10 

Bash 3.00 brace expansion   2005 10  2009/04/15 15:51 TonyLawrence

Bash in-process regular expressions   2005 09  2009/07/18 15:57 anonymous

using bash select   2005 09  2007/03/09 20:25 ludvigericson

Bash aliases   2005 09 

Automating jpeg conversions   2005 08 

 
 
 
 
Cross-Platform Compatibility Testing On One Machine Without Rebooting   2005 08  2005/08/08 22:57 TonyLawrence

Shell Scripting Recipes: A Problem-Solution Approach   2005 06 

How does a shell script know how it was invoked?   2005 06  2005/06/05 09:52 TonyLawrence

Bash looping   2005 06 

SSH_CLIENT, SSH_CONNECTION (OpenSSH Variables)   2005 05 

sort -g vs. sort -n   2005 05  2009/04/21 12:23 TonyLawrence

extglob (extended pattern matching bash)   2005 05  2005/05/25 10:48 TonyLawrence

getconf   2005 05  2005/05/05 13:41 BigDumbDinosaur

PATH, command   2005 04 

test   2005 04  2005/04/26 01:47 BigDumbDinosaur

tree   2005 04 

clever bash tricks   2005 04  2008/01/25 12:49 TonyLawrence

./bashrc doesn't run automatically   2005 04  2005/04/08 14:00 dhart

vlock: Tech Words the Day   2005 03 

Controlling Linux colors in vi (vim)   2005 03  2008/02/01 22:28 TonyLawrence

Controlling core files (Linux)   2005 03  2009/06/19 09:26 TonyLawrence

logname, pipes and controlling terminals   2005 03 

Mailbag: bashrc broken   2005 03  2005/04/10 18:55 TonyLawrence

dialog: Tech Words the Day   2005 03  2005/03/08 03:10 bruceg

seq: Tech Words the Day   2005 03 

tr: Tech Words the Day   2005 03 

users: Tech Words the Day   2005 03 

ex: Tech Words the Day   2005 02 

disown: Tech Words the Day   2005 01 

daemon: Tech Words the Day   2005 01 

 
 
 
 
bashdb: Tech Words the Day   2004 12  2005/04/12 15:11 anonymous

Information about telnet sessions   2004 12 

How old is that file?   2004 11 

Cloning a directory structure without copying files   2004 10 

New Linux Skills Tests Question   2004 10 

New Linux Skills Tests Question   2004 10 

New Linux Skills Test Question   2004 10 

bashdiff: Tech Words the Day   2004 09 

How and where to start writing first Shell Script in UNIX Part 2   2004 08 

How and where to start writing first UNIX Shell Script   2004 08  2005/02/25 23:06 TonyLawrence

tput   2003 11 

dd   2003 11 

Understanding Kill   2003 11 

New Linux Skills Test Question (pattern matching)   2004 08 

Importance of man pages and info docs   2004 07 

bash echo -->Re Replacing /bin/sh with bash   1997-2004 

Using unblock and block with dd to add linefeeds and whitespace padding -->Re need file manipulation command   1997-2004 

bash function to run every command through 'less' -->RePlease help on scrolled output script file   1997-2004 

letter not working in bash   1997-2004 

trapping error in bash script 'trap error ERR'   1997-2004 

ksh exec login script   1997-2004 

rename files script   1997-2004 

shell builtins /bin/cd -->Re /bin/cd   1997-2004 

up-arrow history recall ksh -->Re Doskey   1997-2004 

and #! in scripts -->Re Difference between and#   1997-2004 

 
 
ad
 
 
Wicked Cool Shell Scripts   2004 03 

whence   2003 11 

od   2003 11 

Getopt and getopts   2003 09  2009/10/19 23:28 hb6381

Linux|Unix Shells by Example by Ellie Quigley   2001 09 

Shell Bashing   2001 05 

Basic Scripting   2001 02  2009/09/28 14:46 TonyLawrence

Learning the Bash   2000 03 

How can I recursively grep through sub-directories?   1997-2003  2009/05/28 11:30 anonymous

pavatar.jpg book graphic








Have you tried our Tests?