[cad-linux] extractbmp bash script
- From: "Brian Johnson" <bjohnson@xxxxxxxxxxxx>
- To: <cad-linux@xxxxxxxxxxxxx>
- Date: Fri, 28 Dec 2001 14:38:41 -0500
I made this bash shell script to process directories of .dwg files into .png
files (in the first step to creating a web gallery of Acad blocks)
This is what I ended up with (it's not pretty, but it works)
My next step is to make web pages of the .pngs for each directory with a
link to each subdirectory page
-----Original Message-----
From: wlug-admin@xxxxxxxxxxxxxx [mailto:wlug-admin@xxxxxxxxxxxxxx]On
Behalf Of Sam Behashtei
Sent: Friday, December 28, 2001 11:43 AM
To: wlug@xxxxxxxxxxxxxx
Subject: Re: Bash scripting help needed
I would use a scripting language, such as Python or Perl, I know that what
you've described can be done in a shell, but a proper language gives you a
lot more freedom in terms of upgrade and growth.
I have attached an example in python for you.
Sam Behashtei
Test System Design Engineer
Microsys Technologies Inc.
http://www.micro-sys.com
Tel.: (905) 678 - 3288 ext: 2909
Fax: (905) 678 - 3319
>From: "Brian Johnson" <bjohnson@xxxxxxxxxxxx>
>Reply-To: wlug@xxxxxxxxxxxxxx
>To: <wlug@xxxxxxxxxxxxxx>
>Subject: Bash scripting help needed
>Date: Fri, 28 Dec 2001 11:09:51 -0500
>
>I have a program that extracts the bmp preview image from Autocad .dwg
>files
>but it will only do one file at a time
>
>I need a little help writing a script to process directories of these files
>
>I figured out that I could do ls -1 *.dwg to get the file list for one
>directory but I can't just pipe it to the command, I need to separate the
>filenames and feed them individually inside a scripting loop - I need help
>to figure this out
>
>Also, is there a way to automatically go into sub directories and process
>them too?
>
>_______________________________________________
>wlug mailing list
>wlug@xxxxxxxxxxxxxx
>http://www.westernlug.org/mailman/listinfo/wlug
>Sponsored and maintained by Skynet IA: www.skynet.ca
_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
-- Binary/unsupported file stripped by Listar --
-- Type: application/octet-stream
-- File: bmp.sh
- Follow-Ups:
- [cad-linux] Re: extractbmp bash script
- From: Brian Johnson
- [cad-linux] lx-viewer / success!
- From: phrostie
Other related posts:
- » [cad-linux] extractbmp bash script
- » [cad-linux] Re: extractbmp bash script
- » [cad-linux] Re: extractbmp bash script
- » [cad-linux] Re: extractbmp bash script
- [cad-linux] Re: extractbmp bash script
- From: Brian Johnson
- [cad-linux] lx-viewer / success!
- From: phrostie