Reputation
2,534
Top tag
Next privilege 3,000 Rep.
Cast close & reopen votes
Badges
1 8 20
Impact
~527k people reached

Nov
19
awarded  Popular Question
Oct
18
answered Text Editor like WordGrinder
Oct
6
awarded  Notable Question
Sep
17
awarded  Good Answer
Aug
28
awarded  Enlightened
Aug
28
awarded  Nice Answer
Jul
15
comment Copying Only Directories With Files
I'm think the problem here is that you need to use 0 for every 1 ised in the answer ($0 in ash -c command is equivalent to $1 in a shell script. I have no idea why that's the case).
Jul
14
answered grep for lines/files that contain exactly X chars
Jun
11
answered How do I delete the first n lines and last line of a file using shell commands?
Jun
4
awarded  Nice Answer
Mar
30
awarded  Nice Answer
Mar
28
awarded  Popular Question
Mar
19
awarded  Yearling
Dec
6
revised Shell script to add or replace block of text?
quoted all the 'EOF's so that backslashes will be properly passed to ed
Dec
5
awarded  Popular Question
Dec
5
answered Shell script to add or replace block of text?
Nov
16
answered Using double or no quotes with wildcards
Nov
16
comment Is test or [ or [[ more portable both between bash shells and between other shells?
I'm probably just being dense, but I'm not seeing what the difference would be... could you please give an example where those two constructions would give different results?
Nov
6
awarded  Nice Answer
Nov
5
comment Loop in script on remote server doesn't work
Yup, but it's better to just skip the cat entirely and do it in one line: ssh node2@192.168.1.190 'while read line; do mkdir -p /tmp/$line ; done < temp.txt'