3,635 reputation
412
bio website e-choroba.blogspot.cz
location Czech Republic
age 38
visits member for 2 years, 3 months
seen 20 hours ago

Bash, Perl, Linux. Programming & teaching.


Aug
9
comment What configuration can insert lines between commands?
lifehacker.com/5840450/…
Aug
9
answered Some UTF-8 characters not being recognized by grep or sed
Aug
9
comment What is the purpose of xargs -I command?
@Stephane Chazelas: Well, since there are no double quotes at the for line (for filename in "${files[@]}")...
Aug
9
answered What is the purpose of xargs -I command?
Aug
8
answered Get list of all files by mask in terminal
Aug
1
comment gnome-terminal cmd leaving processes open after closing parent window
0 down vote Bash does not send the nohup signal to its background children upon normal exit. The terminal probably keeps the shells in the background before they are clicked. See askubuntu.com/q/249747/80864 and its answers and comments.
Jul
29
comment the first five characters
@user177073: Remove the | before the >.
Jul
28
comment the first five characters
@user177073: Yes, it does not change the original file. It output to standard output, if you want to create a file, just use redirection: cut -c5 file | head -n25 > output.
Jul
28
answered the first five characters
Jul
25
answered Pg Dn key returns tilde (~)
Jul
24
comment Is this a typo in Bash manual's redirection section?
See stackoverflow.com/q/14615653/1030675
Jul
19
answered Using wget to get file names from a text file
Jul
11
answered Failing on apt-get update
Jul
11
comment How to prevent command injection through command options?
@VictorLyuboslavsky: in what language and how do you call the actual command?
Jul
11
comment How to prevent command injection through command options?
@VictorLyuboslavsky: How exactly do you get the user input and create the command from it?
Jul
11
answered Trouble with mv and adding the date
Jul
11
comment How to prevent command injection through command options?
Does the wrapper application copy and paste the string of options?
Jul
11
comment Adding a time stamp when moving a file in bash
What do you mean by "adding a timestamp"? You are renaming the file to the number of seconds since 1 Jan 1970 (that's what +%s means to date).
Jul
11
comment How to prevent command injection through command options?
Are you using eval to run the application? If not, the injection should not happen: x="&& echo Doomed" ; echo $x
Jul
10
comment When wouldn't one want `cp` to be recursive?
What about cp * new/?