Skip to main content
9 events
when toggle format what by license comment
Oct 9, 2014 at 21:50 history closed Gilles 'SO- stop being evil' bash Duplicate of Brackets in if condition: why am I getting syntax errors without whitespace?
Oct 9, 2014 at 21:50 history edited Gilles 'SO- stop being evil'
edited tags
S Oct 9, 2014 at 12:26 history suggested geedoubleya CC BY-SA 3.0
Made the code more readable, backticked the code attributes and made the heading more relevant.
Oct 9, 2014 at 12:10 comment added steeldriver If you just want to check whether the string Shared appears in the command output you might want to consider using the exit status of grep directly e.g. ipcs | { if grep -q "Shared"; then echo "true"; else echo "false"; fi } or ipcs | grep -q "Shared" && echo "true" || echo "false" - see unix.stackexchange.com/a/48536/65304 for example
Oct 9, 2014 at 12:07 review Suggested edits
S Oct 9, 2014 at 12:26
Oct 9, 2014 at 10:45 comment added Anthon For those wondering: these are not multi-line statements!
Oct 9, 2014 at 10:32 review First posts
Oct 9, 2014 at 10:45
Oct 9, 2014 at 10:30 answer added Yann timeline score: 92
Oct 9, 2014 at 10:28 history asked cokedude CC BY-SA 3.0