User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Use shell to dig a dir and download file.$ Page [1]  
YOMAMA
Suspended
6218 Posts
user info
edit post

There was post on here a while back about using shell to read a directory and then download everything with the X extension.

Anyone? I looked and didnt see it.

2/8/2006 6:38:59 PM

Excoriator
Suspended
10214 Posts
user info
edit post

foreach file in `ls -ltr directory | awk '{print $9}' | grep X` do cp $file .; done;

2/8/2006 7:54:20 PM

YOMAMA
Suspended
6218 Posts
user info
edit post

nope that aint it.

It was to read a remote dir then suck all files that were under that. We did it to this site to try to get all the images so maybe thats why the thread is gone.

2/8/2006 8:16:04 PM

split
All American
834 Posts
user info
edit post

I don't know about doing it within the shell, but check out curl

2/9/2006 8:56:50 AM

YOMAMA
Suspended
6218 Posts
user info
edit post

Curl?

ohh do tell?

2/9/2006 10:12:37 AM

moron
All American
34193 Posts
user info
edit post

there's also gurl and wget .

2/9/2006 10:22:35 AM

YOMAMA
Suspended
6218 Posts
user info
edit post

I have googled but have yet to find an example of how to do this again.

It's now just a matter of principle to get it done!

2/9/2006 2:54:50 PM

 Message Boards » Tech Talk » Use shell to dig a dir and download file.$ Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.