Linux Today: Linux News On Internet Time.
Search Linux Today
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

Linux Today
Enterprise Linux Today
Apache Today
JustLinux.com
Linux Planet
PHPBuilder
All Linux Devices
Technology Jobs

JustTechJobs.com

LinuxToday Newsletters
Server Daily
IT Management Daily
Subscribe News
Subscribe PR
Subscribe Security

internet.com
Internet News
Small Business

Advertise
Newsletters
Tech Jobs
E-mail Offers

 






Current Newswire:

Commercial Support now available for the open-source NGINX Web server

Linux Top 5: Linux's New Fellow

RebeccaBlackOS - First Live CD Running Wayland Display Server

The Linux powered LAN Gaming House

5 Best Android Apps For Reddit Lovers

SECURITY: Flash Player Sandbox Comes to Firefox

The Future of Kubuntu

SECURITY: Symantec should not be afraid of 'open' source code

Linux 3.3 rc3

60 Fantastic Free Android Apps



Applications Management Engineer Sr (NYC)
Next Step Systems
US-NY-New York

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]) (6243 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