Redirect the piped information in garbage | Unix Linux Forums | Shell Programming and Scripting

  Go Back    

Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Redirect the piped information in garbage

Shell Programming and Scripting

Closed Thread    
Thread Tools Search this Thread Display Modes
Old 12-05-2012
urfrnddpk urfrnddpk is offline
Registered User
Join Date: Dec 2010
Last Activity: 6 December 2012, 2:27 AM EST
Posts: 20
Thanks: 2
Thanked 0 Times in 0 Posts
Redirect the piped information in garbage


i was trying to detect one particular type of file through my script(which is running in loop to detect the file )
so i used the follwing command

ls $PATH/*GLB*|grep CTL  > /dev/null 2>&1

but every time i am getting the message

path/*GLB* not found

i am OK with the file not found message but i do not want this message to be displayed


Last edited by Franklin52; 12-05-2012 at 08:22 AM.. Reason: Please use code tags for data and code samples
Sponsored Links
Old 12-05-2012
bartus11's Avatar
bartus11 bartus11 is offline Forum Staff  
Join Date: Apr 2009
Last Activity: 11 January 2015, 5:26 PM EST
Posts: 3,725
Thanks: 7
Thanked 1,147 Times in 1,118 Posts

ls $PATH/*GLB* 2>/dev/null |grep CTL  > /dev/null 2>&1

The Following User Says Thank You to bartus11 For This Useful Post:
urfrnddpk (12-06-2012)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Garbage value sujit_singh Shell Programming and Scripting 3 09-30-2011 02:00 AM
strcat outputs garbage airon23bball Programming 2 05-25-2010 02:57 PM
Remove Garbage Output Danish Shakil Shell Programming and Scripting 7 08-29-2008 11:41 AM
Garbage characters in display Haleja001 UNIX for Dummies Questions & Answers 0 09-21-2005 10:24 PM

All times are GMT -4. The time now is 06:22 PM.