![]() |
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?
|
bash
for i in `ls` do echo $i >> textfile.txt done |
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?
|
icq 169334379?
|
Quote:
|
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 |
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?
|
Quote:
|
ok, I'm not ashamed - I don't know how to do a command prompt.
|
Quote:
Start -> Run... -> Open: cmd -> OK |
ok I got that part now... (next post :P)
|
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 |
then you _C_hange _D_irectory to wherever you want like this
cd \windows\ to change into the "windows" directory |
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? |
type:
cd C:\Documents and Settings\<YOUR WINDOWS USER NAME>\Desktop\ to change onto your desktop then: cd <NAME OF YOUR DIRECTORY> |
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
|
you have to type "cd funnyfoldername"
|
Quote:
It opened a text file, but it's empty. I typed output.txt ...when in the folder.. ? |
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?
|
when in the folder type "dir > output.txt"
|
oh duh "dir /b > output.txt"
|
Quote:
BEEEEEEEEEEEutiful thank you :D maxcom I owe you, hit me up anytime 169334379 |
Oh, how soon we forget our DOS heritage.
|
hmm, get a mac and use the terminal!
|
I use 2 macs - don't personally own any PCs anymore.
|
All times are GMT -7. The time now is 03:05 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123