Reputation
11,433
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
1 34 52
Impact
~938k people reached

Jul
25
comment How to delete files only, but keep the directory structure?
@slm: Thanks. I'll keep that in mind for the next time I post a solution that uses find -exec.
Jul
24
reviewed Close How many clipboards are in system?
Jul
24
reviewed No Action Needed GNOME Panel Completely Blank
Jul
24
comment Silencing all stdout during bootup
@jdwiegman: You could try asking a quesiton over on AskUbuntu. It shouldn't be considered cross-posting if you ask something along the lines of, "Why is the text not hidden by Plymouth?"
Jul
24
comment apt-get purge does not uninstall completely
Packages own files but files do not belong to packages. A system usually determines whether or not a package is installed by looking at a database, not by looking for the files the package would own.
Jul
24
reviewed Approve Bundle my scripts to make an installer in Unix?
Jul
24
revised How to delete files only, but keep the directory structure?
added 21 characters in body
Jul
24
comment How to delete files only, but keep the directory structure?
@slm: You could. \{\} is the same as '{}'.
Jul
24
comment How to delete files only, but keep the directory structure?
@slm: The templates also don't show the escaping of the semicolon, which is generally necessary when using a shell to execute find. I think the templates are meant to show which arguments the find command needs and don't worry about anything shell-related.
Jul
24
comment How to delete files only, but keep the directory structure?
From the GNU find manpage: "Notice that the braces are enclosed in single quote marks to protect them from interpretation as shell script punctuation." I'm not sure when it's necessary though. I mostly do it out of habit. The find command never sees the quotation marks. It just sees the {} marker as an argument.
Jul
24
comment How to delete files only, but keep the directory structure?
@slm: I'm not sure how portable that is. I've added it in as a secondary option. I just realized that my edit made my answer virtually identical to yours. Sorry about that; it was not my intent.
Jul
24
answered How to delete files only, but keep the directory structure?
Jul
24
revised cp: cannot stat `/vol/examples/tutorial/science.txt': No such file or directory
Fix formatting.
Jul
24
reviewed Looks OK How to backup all installed software/packages on AIX?
Jul
24
comment Where is the trash folder in FreeBSD / PCBSD?
You can search for the trash directory by running find ~ -maxdepth 3 -type d -iname '*trash*'. You may have to increase the maxdepth a bit.
Jul
24
revised Is this a typo in Bash manual's redirection section?
Fix formatting.
Jul
24
comment Silencing all stdout during bootup
@jdwiegman: I have added a bit to my answer. Let me know if it works.
Jul
24
revised Silencing all stdout during bootup
added 290 characters in body
Jul
24
revised linux shell: find -exec in find -exec
deleted 51 characters in body
Jul
24
comment linux shell: find -exec in find -exec
@StephaneChazelas: Thanks. I didn't know that.