| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 3 months |
| seen | Jan 31 at 4:08 | |
| stats | profile views | 3 |
|
Jan 31 |
revised |
Outputting last modification date to another file? More concise, figured a couple things out, so I cut out those questions. |
|
Jan 31 |
revised |
Outputting last modification date to another file? added 3 characters in body |
|
Jan 31 |
awarded | Editor |
|
Jan 31 |
revised |
Outputting last modification date to another file? added 8 characters in body |
|
Jan 31 |
asked | Outputting last modification date to another file? |
|
Jan 30 |
asked | Finding lists of files with specific permissions |
|
Jan 30 |
comment |
What are ./ and ../ directories? Oh, of course they're hidden, thanks for the help! |
|
Jan 30 |
comment |
What are ./ and ../ directories? Sorry, I meant to state that I don't want it to count hidden files, but am I right that ls | wc -l does exclude . and .., which would make the statement I copy and pasted in the original post incorrect? |
|
Jan 30 |
comment |
What are ./ and ../ directories? Both -a and -A include hidden files as well which I've realized I want to avoid, so at most I'd do ls -b | wc -l, but this does give me the right answer. Is the line I copy and pasted regarding this command incorrect? If it was correct, shouldn't I be getting an output of 8 when there are 6 files or folders in a directory? |
|
Jan 30 |
comment |
What are ./ and ../ directories? Yea, I just noticed this after actually listing the files. Do you know then why ls | wc -l still gives me the right answer and excludes hidden files, . & ..? |
|
Jan 30 |
comment |
What are ./ and ../ directories? I realized that it's because they're including hidden files (namely .ds_store), but I still don't see how ls | wc -l includes . and .. when I get the right answer, as opposed to the right answer + 2. |
|
Jan 30 |
comment |
What are ./ and ../ directories? I'm a little confused; all three of those you listed add one to the actual count. e.g. if I have 6 files or folders in a directory, they output 7, not 6. To me, it seems like ls | wc -l is the only one excluding . and .. |
|
Jan 30 |
comment |
What are ./ and ../ directories? If it adds two to the # of files in a directory why am I getting the correct answer when testing it in terminal on osx? e.g. a directory with 6 files or folders will output 6, not 8 when I do ls | wc -1 |
|
Jan 30 |
awarded | Scholar |
|
Jan 30 |
awarded | Supporter |
|
Jan 30 |
accepted | What are ./ and ../ directories? |
|
Jan 30 |
awarded | Student |
|
Jan 30 |
asked | What are ./ and ../ directories? |