65,566 reputation
863145
bio website
location European Union
age
visits member for 1 year, 7 months
seen 9 hours ago

Mar
4
revised solaris awk problems with date and if statements
added 257 characters in body
Mar
4
answered solaris awk problems with date and if statements
Mar
4
answered Search for files by content only in trunk subdirectories
Mar
4
revised Where is a shell script run from?
added missing quotes and --
Mar
4
revised Where is a shell script run from?
outer quotes are necessary as well, to prevent globbing and turning sequences of tab space and newline into a single space character.
Mar
4
comment How check presence of service if present return status else -1
What operating system?
Mar
4
comment How can I extract/parse a complete URL from a semi random string?
[^ ] is too wide, you'll want to exclude other blanks, (, ), possibly comas, and all the characters that are not allowed in URLs.
Mar
3
comment subsitute removing zero numbering
Just make it sed -i 's/code_0*\([0-9]\)/code_\1/g'
Mar
3
comment subsitute removing zero numbering
That would turn code_000000 code_000001 to code_ code_1 though.
Mar
3
revised subsitute removing zero numbering
`-i` called like that is GNU specific.
Mar
3
answered Is it possible to change the default COUNT value of tail and head?
Mar
3
comment Is it possible to change the default COUNT value of tail and head?
Yes, but still used in many scripts. GNU once removed support for those but had to bring it back as it was causing outrage
Mar
3
revised Is it possible to change the default COUNT value of tail and head?
added 85 characters in body
Mar
3
comment Is it possible to change the default COUNT value of tail and head?
It breaks it in the case of head -n 15 -2 with both busybox and GNU head and tail at least.
Mar
3
comment Is it possible to change the default COUNT value of tail and head?
It breaks it in the case of head -n 15 -2 with both busybox and GNU head and tail at least
Mar
3
revised awk date identification from input file
improve legibility
Mar
3
revised Script to change ownership of files
missing quotes and a few details fixed.
Mar
3
reviewed Reject suggested edit on How to relate a kernel config setting to the source files?
Mar
3
comment How to relate a kernel config setting to the source files?
And if you've got many of them to search for, you could use cscope for instance to index your source tree first (there's also a nice integration of cscope in vim).
Mar
2
comment How can I use a loop inside a command?
@Cerran, it doesn't return a space-separated list, it returns a list of arguments. ls takes a list of files as arguments, not one argument with spaces in them to separate them. It's the shell role to take a command line and turn it into a list of arguments to pass to a command (by identifying words separated by spaces, or quoted...)