I'm an old open-source independent hacker,
concerned about concepts of ethical hacking, teaching and sharing.
I like to play with shell, perl, lisp (sometime), sed and lot of other languages/environments.
Co-system administrator in several configurations, after various SMEs, I like to sometimes take time to focus on methods that I can improve or re-create (for example to change the level of abstraction).
In this, surfing on differents StackExchange's sites is a good way to boost my inspiration!
4h
|
|
comment |
BASH: Assign values to variables with echo | sed | read Have a look How do I set a variable to the output of a command in Bash! |
2d
|
|
comment |
Cron call vs CLI call on Ubuntu You have to add PATH definition in your script! see: How to get CRON to call in the correct PATHs
|
2d
|
|
comment |
Display Enclosed CSV in Bash This question is similar to: How to parse a CSV file in Bash?. If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem. |
2d
|
|
comment |
How do I prompt for Yes/No/Cancel input in a Linux shell script? @MyrddinEmrys Maybe because you answered first, then my answwer was posted approx 6 years later, your answer was already the best voted and is THE accepted answer. |
Jul
18 |
|
comment |
Gnu-Parallelization within a shell script Have a look How I use bash or posix shell for draw a Mandelbrot by parallelizing works on many bc process here: Is bash a programming language? Note; I don't use parellel for parallelizing jobs under shell more sample at end of this.
|
Jul
16 |
|
comment |
trigger a foreground app by a script runnning in background (in same tty, linux) I'ts near impossible to plan having a background task unexpectedly to take precedence over current TTY. Depending on what you're currently doing (editing some file with an editor), this may cause trouble! |
Jul
16 |
|
comment |
sendmail command not able to send mail Check server logs! ( You may have to end your lines by carriage return: sed 's/^ *//;s/$/\r/;' <<EOF| sendmail -t )
|
Jul
16 |
|
comment |
sendmail command not able to send mail Remove spaces before lines in your header!! Or use something like sed 's/^ *//' <<EOF | sendmail -t
|
Jul
15 |
|
comment |
How to remove lines of file content, if has specific trailing string? Or grep -v "-mobile$" file.txt|xargs Look for xargs about merging lines
|
Jul
15 |
|
comment |
How to remove lines of file content, if has specific trailing string? This question is similar to: Negative matching using grep (match lines that do not contain foo). If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem. |
Jul
15 |
|
comment |
How to remove lines of file content, if has specific trailing string? Uh? echo $(grep -v "-mobile$" file.txt| tr \\n \ )
|
Jul
14 |
|
comment |
trigger a foreground app by a script runnning in background (in same tty, linux) ... Then you have concurrence over STDIN between your background task and foreground shell... |
Jul
13 |
|
comment |
(SOLVED) 'realpath' works from bash but not in desktop file Read this: Desktop Entry Specification |
Jul
13 |
|
comment |
(SOLVED) 'realpath' works from bash but not in desktop file This question is similar to: Installed .desktop file to have user's home directory path inserted. If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem. |
Jul
13 |
|
comment |
(SOLVED) 'realpath' works from bash but not in desktop file Or something like Exec=/bin/sh -c 'rtl_acars_ng -f 131.550M -D $(realpath ~/.config/rtl_acars_ng/datasets)'
|
Jul
13 |
|
comment |
(SOLVED) 'realpath' works from bash but not in desktop file Use $HOME instead of~ !!
|
Jul
13 |
|
comment |
How to use inotifywait to watch a directory for creation of files of a specific extension Care! regex is overkill for this! Prefer to use [[ "$filename" == *.xml ]] ! I personally use case for this, see my answer
|
Jul
13 |
|
revised |
How to use inotifywait to watch a directory for creation of files of a specific extension added 356 characters in body |
Jul
13 |
|
answered | trigger a foreground app by a script runnning in background (in same tty, linux) |
Jul
12 |
|
comment |
How do I directly communicate with socat's child processes that result from forking on a new connection? @RichardT What's the goal of this? What are you trying to do? Please explain more, what you've tried, what you expected... |