2,419 reputation
1015
bio website e-choroba.blogspot.cz
location Czech Republic
age 38
visits member for 2 years, 6 months
seen Jan 18 at 19:03

Bash, Perl, Linux. Programming & teaching.


Dec
22
comment Alternative for |(pipe) operator
I'm just checking it's not an XY problem.
Dec
22
comment Alternative for |(pipe) operator
Why do you need it?
Nov
21
comment How to select and print IP address from a set of strings?
For multiline processing, I'd turn to Perl.
Nov
21
comment How to select and print IP address from a set of strings?
@AnanduMDas: Updated.
Nov
12
comment How to find all patterns between two characters?
Is it possible for the quoted text to contain newlines?
Nov
7
comment Make all new .sh file executable
askubuntu.com/q/311438/80864
Aug
27
comment Sorting two columns with sort and uniq
w works for whole words (so User1 doesn't select User11), and f- tells grep to read the patterns from the file -, which is stdin.
Aug
26
comment Simple bash script not working
The . is what makes it work.
Aug
12
comment Trouble using cd command with “~” or “$HOME” in bash scripting
Just don't try entering ; rm -rf / as the path.
Aug
12
comment Trouble using cd command with “~” or “$HOME” in bash scripting
@Pandya: Fixed a typo.
Jul
28
comment bash script to back up file
Check Revision control. Check SVN, Git, and so on.
Jul
28
comment bash script to back up file
What about using a version control system instead?
Jun
29
comment Store the return string to a variable from zenity
stackoverflow.com/q/24474286/1030675
Jun
24
comment Echo script arguments from function
Is the function defiend inside the script? If so, you can store the argumants to a global array.
Jun
14
comment Change directory structure from /YEAR/MONTH/DAY/ to /YEAR-MONTH-DAY
Do you mean you already have a structure and you want to flatten it? Do you want to create one directory per day? Should the path change, but the filenames stay?
Apr
29
comment Solving $PATH obfuscation by /bin/sh (dash)
What do you mean by "reserves %"? I was able to create a file named %a%b%c and copy it.
Apr
28
comment Why is program not executed even though it is in my path?
Can you just rehash your shell? hash -r for bash.
Apr
26
comment How to make a shell script pipe aware
I have a strange feeling I met this question somewhere else. And I asked the very same questions as @gniourf_gniourf.
Apr
15
comment Bash script for execute one command for many files
What is in results.out after the script finishes?
Apr
7
comment How to tar the n most recent files with spaces in filename?
@dabadaba: Always use the right tool for a job shrug