1,427 reputation
55
bio website
location
age
visits member for 4 years, 8 months
seen Sep 5 '11 at 0:29

Aug
21
comment Ignore first N matches and print (N+1)th match in grep
I don't think this is what he wants (if i understood his question correctly)
Apr
28
comment How can I get the current system date and time using a command prompt?
you specified DD. Isn't that what you want? go to here: microsoft.com/downloads/en/… and download the vbscript manual. For hours and min, try Hour() , minute()
Jul
31
comment Unix: Search and replace in file names
shows that you have actually looked at it. :)
Jul
30
comment Unix: Search and replace in file names
then read this: tldp.org/LDP/abs/html/refcards.html#AEN22102
Jul
14
comment Unix command to list the portion of the end of a log file from a line containing only hyphens to end of file
its slow because the script iterate the file multiple times. Once in the grep/tail/sed statement, twice at the cat/sed portion (last if/else ).
Jul
13
comment Unix command to list the portion of the end of a log file from a line containing only hyphens to end of file
awk's RS regex doesn't "recognise" start of line. A more appropriate RS regex to use would be RS="\n-+".
Apr
6
comment How to Remove the Last 2 Lines of a Very Large File
you can give GNU head a try. head -n -2 file
Mar
25
comment Linux wc command
look at the man wc page. or info wc page
Mar
19
comment Only show hidden files in certain directories
i leave it there in case OP want to list all files, not only hidden
Mar
19
comment how to get elements from list in bash?
no need to echo: arr=($List)
Mar
9
comment Why does this bash command take up all space on device?
i prefer find /path -type f -iname "*.php" -exec grep -q -H "module" "{}" +; ...
Feb
25
comment Find external and internal devices attached to a system in Linux
I looked at the page, its new i guess. no idea how.
Feb
11
comment Copying large number of files from one directory to another in Linux
i do not have a million files to test, so i can't answer for you about performance. you have to test out yourself on a development server.
Feb
9
comment find and mail if changes has occured, unix
just put the command in the appropriate if/else statement.
Feb
9
comment find and mail if changes has occured, unix
yes. why don't you try it out? type the above command and run it, then try specifying file name once and run it again.
Feb
4
comment questions about bash background job
@tim, if you do a man stop ,you can see it says "request that the job be stopped". Basically that's that.
Feb
3
comment is there a way to attach a PDF to an email sent with the UNIX email command?
yes. Why not try out for yourself and see?
Feb
3
comment cron job remove / delete file
"doesn't seem to be working" is not good enough description. did the file get deleted? check the mail of the user who runs it , what does it say?
Jan
28
comment Show only odd lines with cat
@roberto, don't need the input redirection.
Nov
27
comment Get a list of all files and their attributes on OS X
so that means you can set something to let it search for system directories, right?