Linux Today: Linux News On Internet Time.
Search Linux Today
search.internet.com
Linux News Sections:  Blog -  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Preferences
Contribute
Link to Us
Search
Linux Jobs

Become a Marketplace Partner

internet.commerce
Be a Commerce Partner














The Linux Channel at internet.com
Linux Today
Enterprise Linux Today
Apache Today
JustLinux.com
Linux Planet
PHPBuilder
All Linux Devices
Technology Jobs

JustTechJobs.com

LinuxToday Newsletters
Subscribe News
Subscribe PR
Subscribe Security

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

 






Current Newswire:

Using Windows Is Like...

Installing Ubuntu 9.10

Hands-on: OpenMoko WikiReader is simple, appealing

Perl far from dead, more popular than you think

Microsoft Exchange alternatives

Kubuntu 9.10: A Mixed Bag

Could Microsoft switch to Linux?

Red Hat Virtualization Manager for Windows Only?

Creating Ebooks with Sigil

Editor's Note: Making Multi-Channel Firewire Music With Linux




Virtualization Architect
The Computer Merchant, Ltd
US-MA-Chelsea

Justtechjobs.com Post A Job | Post A Resume
:CLI Magic: A Little Script to Customize Directory Listings
CLI Magic: A Little Script to Customize Directory Listings
Dec 12, 2007, 05 :30 UTC (3 Talkback[s]) (4634 reads)

(Other stories by Sergio Gonzalez Duran)

"Sometimes when I run ls to get a directory listing, I am looking for a specific file, but I want to see the whole context where the file resides. While you can pipe the output of ls to grep, that doesn't show you the whole directory with the matched files highlighted in a different color. I create a small script to do just what I want.

"For example, suppose that in /proc/sys/net/ipv4 I want to see files that have the pattern 'max' as part of the name. I could run ls /proc/sys/net/ipv4 | grep max. grep changes the color to red where the pattern is found, but it doesn't display the files I want in the context of the entire directory listing..."

Complete Story

Related Stories:
Linux Traffic Analysis, Quick and Simple(Dec 07, 2007)
CLI Magic: Quick and Easy Backup with lftp(Dec 05, 2007)
CLI Magic: No-Nonsense Network Monitoring Tools(Nov 29, 2007)
CLI Magic: Video Conversion with Mencoder(Nov 26, 2007)


Index Mode   |   Flat Mode   |   Thread Mode   |   Thread Flat  
  Talkback(s) Name  and Date
Incorrect placement of this script.This  ...   No scripts in /usr/bin please!   
George Van Tuyl
Dec 12, 2007, 16:46:58
 
Ummmm.I may be way off base here.  But I ...   Re: No scripts in /usr/bin please!   
Bernard Swiss
Dec 13, 2007, 00:07:58
 
> Incorrect placement of this script.> T ...   Re: No scripts in /usr/bin please!   
Daniel Burrows
Dec 13, 2007, 16:29:16
 
  Home | Search Talkbacks | Customize View    Top of Page  



Enter your comments below:

* Your Name:

* Your Email Address:

* Subject:

CC: [will also send this talkback to an E-Mail address]

* Comments:

Tags allowed:<I>,<B> and <U>. See our talkback-policy for more about talkback content.

Fields marked with * are required!






..............................




All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux, Apache and PHP

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs