LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-16-2005, 10:36 AM   #1
user_linux
LQ Newbie
 
Registered: Jun 2005
Posts: 12

Rep: Reputation: 0
how to run cat command in silent mode


How do I run cat command in silent mode in Linux?

I tried the -s option but it is not working.
 
Old 06-16-2005, 10:40 AM   #2
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
What do you mean by silent mode?
 
Old 06-16-2005, 10:46 AM   #3
user_linux
LQ Newbie
 
Registered: Jun 2005
Posts: 12

Original Poster
Rep: Reputation: 0
silent mode means cat is silent about nonexistent files
 
Old 06-16-2005, 10:51 AM   #4
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
Probably the easiest way is to run cat ...some args... 2>/dev/null
This will discard all error messages.
 
Old 06-16-2005, 11:21 AM   #5
user_linux
LQ Newbie
 
Registered: Jun 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bootsplash screen in silent mode has never worked linux23rookie SUSE / openSUSE 2 09-23-2005 06:46 PM
Verbose to Silent Mode Very Maqbool Linux - Software 2 07-16-2005 03:34 AM
grub: is there a silent mode? srns Linux - Software 2 10-22-2004 10:48 PM
cat command juanb Linux - Newbie 4 08-19-2004 12:14 PM
cat Command Moeses Linux - General 1 06-20-2002 04:27 AM


All times are GMT -5. The time now is 04:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration