Find all files .c .cc .h .hh .tcl

unix

    Next

  • 1. Not able to send multiple attachements - Formatting issue
    Greetings, I am trying to send two files as attachments in unix. Following is the command I am using Contents of File1.txt 1|Name|Desgination 2|Name2|Desgination Contents of File2.txt 1|Name|Desgination 2|Name2|Desgination $ uuencode File1.txt File1.txt > /tmp/out.mail $ uuencode file2.txt File2.txt >> /tmp/out.mail $ mail -s "Test" xyz@xyz < /tmp/out.mail But this is what I receive on my mailbox Contents of File1.txt 1|Name|Desgination [] 2|Name2|Desgination [] Contents of File2.txt 1|Name|Desgination [] 2|Name2|Desgination [] Each record has a space at the end in orignal files. It seems [] is some special character which is replacing those spaces. Strangely, when I open the mail in notepad the special character appears but if I try to open in wordpad the spaces remains intact. Can any one please let me know why is this so? Also, I would like to zip my attachements before sending it across. Can this be done in my code? Any help would be appreciated. TIA

Find all files .c .cc .h .hh .tcl

Postby shuvabrata » Sat, 09 Aug 2003 21:37:39 GMT

Hi,
I want to find out all the files with the
extensions .c .cc .hh .h and .tcl.

The command
find . -name "*.[ch]*" -print

will find all files with the extension .c .cc .h .hh (or .ccccc or
.hhhh) but not .tcl

Any help?


Regards
Shuva.//

Re: Find all files .c .cc .h .hh .tcl

Postby Christophe Le Gal » Tue, 12 Aug 2003 21:02:41 GMT



Sure, sorry. The way I wrote it -print only apply to the last
-name 
So you can either 
*) forget the -print (this is the default action on most find)

find -name "*.h" -o -name "*.cc" -o ...

*) Say -print for all -o :

find -name "*.h" -print -o -name "*.cc" -print -o ...

*) Better implementation of the former solution :
group the -name -o .... -o -name in a single expression :

find \( -name "*.h" -o -name "*.cc" -o ... \) -print

*) fallback solution (if you really only want to print this filename)

find -name "*.h" ; find -name "*.cc" ; ...
:-)


Cheers.


-- 
Christophe Le Gal

Similar Threads:

1.cannot find file tcl.h

["Followup-To:" header set to comp.os.linux.misc.]
On 2008-05-28, Rahul < XXXX@XXXXX.COM > wrote:
>
>
> I was trying to install vtk on my system which needs tcl. It keeps asking 
> for a file 'tcl.h'. 
>
> I can't seem to find this particular file anywhere on my system. I think I 
> have tcl installed (or not?). tclsh, tclsh8.4, wisc and wish8.4 do exist on 
> my system.
>
> Any sugesstions where I can get a tcl.h from?
>
Maybe in a tcl*-dev package for your distro?

2.How do I find out what is running at HH:MM after the fact

Hi there

Is there any way I can find out what programs were running at a
specific time in the past. i.e. I come in to work at 8 and find that
at 2am the system was 98% busy but I don't know what process was
causing it.

thanks in advance

3.tcl-syslog: Unix system logging for Tcl (Tcl package)

4.Sunstudio can't recognize .hh file as C++ header

Hi,
Sunstudio can't recognize .hh file as C++ header. It thinks it is a
text file and doesn't color code the syntax.
Is there an option somewhere I can edit so that it does?
Thanks.

5.Where can I find visual tcl tutorials for linux

Just starting to learn Visual tcl, Where can I find visual tcl
tutorials for linux

Johnny

6. I can not find Tcl/expect after install Solaris 9

7. Running D3 TCL command from Linux occasionally stops at TCL prompt

8. Bash calls TCL, TCL calls Bash, 2nd Bash never reads input



Return to unix

 

Who is online

Users browsing this forum: No registered users and 38 guest