![]() You can tell that the command got confused about the location when I dragged in the folder and it told me "No such file or directory". This is close to what I want, only this is not the right location, obviously. Then I went into TextEditor and pasted Paste and I got this: Can you please give me specific instructions?īecause I went to Terminal -> New Command. I need to know how to execute this task, and how to point it to a specific folder and tell it to look through that folder and give me a list of file sizes within the folder. I don't need to know to name the file I'm creating. thanks again for any help you can give to me!! I copy and pasted it verbatim into Terminal (and obviously it doesnt contain any info about where the folder is) and I hit enter and it told me "-bash: syntax error near unexpected token `<'"Ĭan you try explaining how to make this code work for me? I'm not exactly a 'noob' when it comes to computers. Where you wrote "", is that where I type in the "path" of where the folder lives on the computer? I want to be able to take a line of code, point it to a folder, hit enter, and it gives me a list of all the file sizes from that folder (in order of file name).ĭo I have to type in the file path of where the folder is located on the computer before typing in that line of code you gave me? I have no idea how to use that line of code. I'm not sure how to execute this task with the information you've provided above. Things will work for a few seconds, then your file_list.csv file will be ready.I'm really unfamiliar with terminal and all of the coding above. Type cd Documents/Projects/Whereever to change to the folder that you want the listing of.Ĭopy the find… command above, then paste it in the Terminal window, then press Enter. Users/timlawson) ready to type a command. Arduino/libraries/Firmata/Boards.h,44153įrom Finder, open Applications, then Utilities, then double-click Terminal Arduino/libraries/Firmata/keywords.txt,2207 Arduino/libraries/Firmata/test/firmata_test/firmata_test.ino,3628 Arduino/libraries/Firmata/test/firmata_test,96 ![]() ![]() Arduino/libraries/Firmata/test/readme.md,586 Arduino/libraries/Firmata/FirmataConstants.h,5687 Arduino/libraries/Firmata/FirmataDefines.h,8635 The output will be in the file file_list.csv that you can open in your spreadsheet program. There might be another way besides using the Terminal, but this will get you a list of all files and their sizes. pdf files in my Documents folder by using this command: stat -f "%N,%z" *.pdf | pbcopy Misinterpretation of one of Issac Newtons writings.pdf,412847įor this example, I limited it to only. Kolbe A Result for John Johnson.pdf,1376239 Jean-Léon Gérôme and Polychrome Sculpture.pdf,371825 Here’s a sample of what the command produced on my system. I just did that on my sample data, and Excel remembered it so I didn’t have to do it again for this spreadsheet. in the Data menu to convert it to separate columns. If it pastes in as one column, use Text to Columns. If you’re lucky, you’ll get two columns, filenames, and sizes. Now, switch over to Excel (I assume) and Cmd+V to paste. The vertical bar (also called pipe) sends the output of the stat command to the pasteboard copy command pbcopy. Stat -f "%N,%z" prints the file name ( %N), then a comma, then the file size ( %z). Then moves into the Documents folder and yourfolder The other way is to use an Applescript as suggested in Daniel's answer. You can also click the back arrow to go to the previous folder, and then the forward arrow. ![]() ![]() In Finder, this would be the house icon with your user name. The easiest way to have the Finder refresh its listing is to enter a subfolder and click the back arrow to come back to the original folder. There is a near-infinite number of ways to gather and format the text.Ĭd changes directory to the folder you’re interested in. You could,do this with Terminal (bash) commands, if you’re open to that. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |