Jul
28
comment How to get the time information of the files after find | grep keyword command?
And to elaborate on this the "-ls" option of find gives you an ls like output which might already show you what you need. And if that doesn't work an alternative to find ... -exec is to use xargs. The advantage of xargs is that the results of find are passed to a single instance of the command which is often better for performance. Example: find ./ -name 'tutorial' -print0 | xargs -0 du
Jul
22
awarded Notable Question
Jun
11
awarded Yearling
Jun
11
awarded Yearling
Jun
2
awarded Popular Question
Apr
18
awarded Yearling
Apr
18
awarded Yearling
Apr
13
awarded Yearling
Apr
13
awarded Yearling
Apr
3
comment self-deleting shell script
@RFH: this is not an answer to this specific question but can perhaps help you solve the problem in a different way. If you're trying to manage the configuration of a set of servers you may want to look into a proper configuration management tool like puppet (puppetlabs.com), cfengine (cfengine.com), salt (saltstack.com), etc. Those tools not only can do the initial setup but they can guarantee that the configuration remains correct afterwards.
Apr
3
comment self-deleting shell script
@TranSonHai: Sorry if you're irritated by the answer. But I honestly believe that in many cases this approach is very useful for users facing a similar problem.
Mar
7
awarded Supporter
Jan
26
awarded Revival
Oct
23
answered KeePass wildcard in url
Sep
29
awarded Teacher
Sep
29
comment Why brace expansion not supported?
@user43312: why are you still using RH9? It has been unmaintained for many many years. AS Stephane wrote it is a feature of recent bash versions. So it's very unlikely that your bash version supports it. You can check the version using bash --version. And just to be sure check if you are running a bash shell by checking the $SHELL variable or simply running ps. To use this feature you might try to start a zsh shell (zsh) first. Anothher workaround would be to use something like "mkdir $(seq 1 10)".
Sep
29
comment Bash, name of the stdin file?
side note: counting the signs is not the best way to check if a file is valid. While it is recommended to encode a greater than sign as > the w3c validator doesn't even generate a warning if you don't. So if you are trying to validate XHTML/XML/SGML/etc. you need to look into different tests.
Sep
29
answered Can't get cdrecord to work on new 13.04 installation
Jun
11
awarded Popular Question
May
14
answered Quoting original message after conversion from HTML to plain text in Outlook
1 2 3 4 5