![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
Get creative! Or just give me a simple answer to an easy question :P
I have a folder full of odd named pages, I want to copy all the names and then paste the list to notepad so I can search replace ctrl+v and etc. I can't just copy paste because it copies the whole file rather than just the name, and I can't do it one at a time manually because i make too many mistakes with these names - there's more than 200 different odd names to type. How do I get this list of filenames onto a notepad?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jan 2004
Location: Cleveland & Atlanta
Posts: 6,706
|
bash
for i in `ls` do echo $i >> textfile.txt done
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
I'm not familiar with "bash" - but I have seen people throw a few lines like this around before and i googled it... looks interesting, anyone care to walk me through it once?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
icq 169334379?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Jan 2004
Location: Cleveland & Atlanta
Posts: 6,706
|
Quote:
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Registered User
Join Date: Nov 2004
Location: Gold Coast, Australia
Posts: 23
|
The trouble is, I think Wolfy wants to do this on windows.
To do this you could do something like: Code:
dir > output.txt Hope this helps, Kondro |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
i need the bash program for this though, right? I found a few mac programs that would do what Andrew suggested, but kondro is right, I am using windows. What program do I use for windows to run this type of thing?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Jan 2004
Location: Cleveland & Atlanta
Posts: 6,706
|
Quote:
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
ok, I'm not ashamed - I don't know how to do a command prompt.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Confirmed User
Join Date: Sep 2002
Location: Seattle, WA
Posts: 447
|
Quote:
Start -> Run... -> Open: cmd -> OK |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
ok I got that part now... (next post :P)
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
actually I jut found it on the net, you can right click the start button and click on command prompt
I have no idea how to proceed from here, I'll play a moment I guess |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Join Date: Sep 2002
Location: Seattle, WA
Posts: 447
|
then you _C_hange _D_irectory to wherever you want like this
cd \windows\ to change into the "windows" directory |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
fuck I have no idea how this works - my folder is on my desktop, I type in the command prompt:
dir folder > output.txt what am I missing? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Confirmed User
Join Date: Sep 2002
Location: Seattle, WA
Posts: 447
|
type:
cd C:\Documents and Settings\<YOUR WINDOWS USER NAME>\Desktop\ to change onto your desktop then: cd <NAME OF YOUR DIRECTORY> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
heh, I think the right click option may have been added when I installed that last program I found on the net.. I am in windows, but "funnyfoldername" is apparently not a valid command prompt :P
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Confirmed User
Join Date: Sep 2002
Location: Seattle, WA
Posts: 447
|
you have to type "cd funnyfoldername"
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 | |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
Quote:
It opened a text file, but it's empty. I typed output.txt ...when in the folder.. ? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
ok I got it now, it isn't exactly what I wanted - now it has a ton of time and date stamps in the file, but I'm pretty sure I can just open this up in a spreadsheet and kill the unwanted stuff - unlless you have a better idea maxcom?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 |
Confirmed User
Join Date: Sep 2002
Location: Seattle, WA
Posts: 447
|
when in the folder type "dir > output.txt"
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 |
Confirmed User
Join Date: Sep 2002
Location: Seattle, WA
Posts: 447
|
oh duh "dir /b > output.txt"
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#22 | |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
Quote:
BEEEEEEEEEEEutiful thank you :D maxcom I owe you, hit me up anytime 169334379 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#23 |
Registered User
Join Date: Nov 2004
Location: Gold Coast, Australia
Posts: 23
|
Oh, how soon we forget our DOS heritage.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#24 |
Confirmed User
Join Date: Jan 2003
Location: 2006
Posts: 8,584
|
hmm, get a mac and use the terminal!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#25 |
Registered User
Join Date: Nov 2004
Location: Gold Coast, Australia
Posts: 23
|
I use 2 macs - don't personally own any PCs anymore.
|
![]() |
![]() ![]() ![]() ![]() ![]() |