Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Search Forums:



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

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-07-2012
Registered User
 

Join Date: Feb 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
cat question

hello! why this works?


Code:
cd /home/user
cat * | ecasound -i stdin -o jack

and this doesn't?


Code:
cd /home/user/somedirectory
cat * | ecasound -i stdin -o jack

somedirectory are full with exe files which are the best source for this sort of noise thing

Last edited by Scott; 02-07-2012 at 05:54 AM.. Reason: Please use code tags - and a more meaningful subject for your threads
Sponsored Links
    #2  
Old 02-07-2012
Scott's Avatar
Scott Scott is offline Forum Staff  
Administrator
 

Join Date: Jun 2009
Location: Switzerland - ZH
Posts: 5,352
Thanks: 130
Thanked 535 Times in 473 Posts
Unless you define what "doesn't work" means, it's possible that no one can help you.
Sponsored Links
    #3  
Old 02-07-2012
ahamed101's Avatar
root is god!!!
 

Join Date: Sep 2008
Location: India
Posts: 1,478
Thanks: 33
Thanked 382 Times in 377 Posts
cat * will exapnd to cat file1 file2... file1, file2 etc files being in the current directory. So chances are there that the "somedirectory" is empty!

--ahamed
    #4  
Old 02-07-2012
Scott's Avatar
Scott Scott is offline Forum Staff  
Administrator
 

Join Date: Jun 2009
Location: Switzerland - ZH
Posts: 5,352
Thanks: 130
Thanked 535 Times in 473 Posts
Quote:
Originally Posted by ahamed101 View Post
...
So chances are there that the "somedirectory" is empty!
...
We appear to have a different understanding of the meaning of
Quote:
somedirectory are full with exe files
Sponsored Links
    #5  
Old 02-07-2012
Registered User
 

Join Date: Feb 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
i mean first example "cat's" files in my home directory to my soundcard and makes noise but second example throws error
cat: invalid option -- ' '
so how to use subfolder in home directory and cat all files from that directory to | ecasound -i stdin -o jack?
Sponsored Links
    #6  
Old 02-07-2012
ahamed101's Avatar
root is god!!!
 

Join Date: Sep 2008
Location: India
Posts: 1,478
Thanks: 33
Thanked 382 Times in 377 Posts
Quote:
Originally Posted by Scott View Post
We appear to have a different understanding of the meaning of
Oops... I missed that part!...

--ahamed
Sponsored Links
    #7  
Old 02-07-2012
Scott's Avatar
Scott Scott is offline Forum Staff  
Administrator
 

Join Date: Jun 2009
Location: Switzerland - ZH
Posts: 5,352
Thanks: 130
Thanked 535 Times in 473 Posts
Perhaps you have a file name '-- '?


Code:
$ touch -- '-- '
$ cat *
cat: unrecognized option `-- '
Try `cat --help' for more information.

Sponsored Links
Reply

Tags
cat

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
awk question. rontopia Homework & Coursework Questions 7 03-17-2011 08:41 PM
Question about 223 gsabarinath AIX 6 03-16-2009 06:46 PM
Cal question Vin UNIX for Dummies Questions & Answers 2 01-19-2008 09:51 PM
question on afs Anta Shell Programming and Scripting 0 02-11-2005 02:53 AM
FTP Question kapjag Shell Programming and Scripting 1 01-20-2005 11:02 PM



All times are GMT -4. The time now is 04:36 AM.