66,301 reputation
864147
bio website
location European Union
age
visits member for 1 year, 8 months
seen 12 mins ago

Apr
18
comment Dynamically trim stdout line width in Bash
Some shells like zsh, ksh93 or bash store the terminal width in $COLUMNS
Apr
18
comment Dynamically trim stdout line width in Bash
Try tput rmam; ps aux
Apr
17
comment Remove Linux directories containing ONLY old files
@pk7, if the directories contain only 180+ days (or if the directories are empty), then find will output nothing, then grep will return false, then echo rm will be executed.
Apr
17
comment Remove Linux directories containing ONLY old files
@val0x00ff It removes the directories that do not contain files younger than 180 days.
Apr
17
comment Get bash DEBUG trap to execute only once for and/or lists?
See this
Apr
17
answered Remove Linux directories containing ONLY old files
Apr
17
comment Get bash DEBUG trap to execute only once for and/or lists?
Sounds like you want the equivalent of zsh's preexec() hook.
Apr
17
answered Seperate messages of multiple sshds in syslog-ng
Apr
17
comment Is there a one liner which can list public key fingerprints with authorised_keys as input?
That doesn't work, -f expects a file name (and that file has to be a regular file as ssh-keygen opens and reads the file several times)
Apr
17
comment Want to replace the words with space in multiple files using SED commmand
@danny, use -i (GNU sed) or -i '' (FreeBSD, OS/X) if you want in-place editing but no backup.
Apr
17
comment Find “.git” dirs but ignore some paths; or how does `find -not` work
-path '*/old' is the same as -name old
Apr
17
revised Find “.git” dirs but ignore some paths; or how does `find -not` work
added 18 characters in body
Apr
17
comment Find “.git” dirs but ignore some paths; or how does `find -not` work
That still descends into the old directories, you may want to use -prune here to avoid that.
Apr
17
revised Find “.git” dirs but ignore some paths; or how does `find -not` work
added 6 characters in body
Apr
17
revised Want to replace the words with space in multiple files using SED commmand
added 72 characters in body
Apr
17
comment Want to replace the words with space in multiple files using SED commmand
@Danny, note that the .php files are the backup files (the original) the modified ones are the files themselves.
Apr
17
revised Want to replace the words with space in multiple files using SED commmand
added 5 characters in body
Apr
17
answered Want to replace the words with space in multiple files using SED commmand
Apr
17
comment Perform filename expansion on $@
If (wild guess) what you want is absolute paths of those of the positional parameters that are non-empty directories, then that'd be something like $^@(NF:a)
Apr
17
revised `ls -l` of a file and all the directories leading to it?
added 178 characters in body