15,765 reputation
22558
bio website shelfari.com/joseph-riad
location College Station, TX
age 26
visits member for 1 year, 11 months
seen 14 mins ago
  • Electronic engineering major. (MSc. holder, PhD. candidate)
  • (No longer) Doing Linux sysadmin stuff for lack of someone better.
  • Lover of books: technical, non-technical, literary,...

Reach me at joseph dOT samy DoT albert At Google's email service

profile for Joseph R. on Stack Exchange, a network of free, community-driven Q&A sites


13m
comment Replace a string containing newline characters
@mikeserv Please be specific about what you mean. It worked for me.
36m
answered Replace a string containing newline characters
2d
comment Sed/awk/perl: reversing order of comma separated values, preserving other text
@FlavioPasqualin You're right, the } in the second version was extraneous. I removed it. But since the formatting in the comments is terrible, can you please clarify what the problem you're getting is?
2d
revised Sed/awk/perl: reversing order of comma separated values, preserving other text
deleted 1 character in body
2d
answered sed - remove the very last occurance of a string (a comma) in a file?
2d
revised Sed/awk/perl: reversing order of comma separated values, preserving other text
added 104 characters in body
2d
revised Sed/awk/perl: reversing order of comma separated values, preserving other text
added 104 characters in body
2d
answered Sed/awk/perl: reversing order of comma separated values, preserving other text
Oct
18
comment Sed/awk/perl: reversing order of comma separated values, preserving other text
Please add more clarification. What have you tried so far? How can you tell the difference between what needs to remain in place (.BYTE) and what needs to be reversed (the rest of the line)? Can we assume the comma-separated values consist only of digits? Can they have a fractional part? Can they be negative?
Oct
17
revised Create a list of directories
added 223 characters in body
Oct
17
revised Create a list of directories
added 223 characters in body
Oct
17
answered Create a list of directories
Oct
6
awarded  Enlightened
Oct
2
comment grepping for multiple items
@brad Sorry, my bad. You need double quotes (join ",",...). Sorry, posted that late at night.
Oct
2
revised grepping for multiple items
edited body
Oct
2
comment grepping for multiple items
@brad As I've said, please take the extra comma I added into account: print join ',',...
Oct
2
comment Gnome 3 - custom keyboard shortcut to run command as root?
@Josiah Another alternative may be if your keyboard shortcut can be configured to "Run in a terminal". Have you tried that?
Oct
2
comment Gnome 3 - custom keyboard shortcut to run command as root?
@Josiah There seems to be an alternative called Beesu but I'm not sure if it's part of the "official" distribution. Use at your own risk and please don't deploy in a production multi-user environment until you're sure it's safe.
Oct
2
comment grepping for multiple items
@brad That's because the code was never meant to be put into a file. Please try it: paste the above as-is on the command line (note that I have updated it to fix a minor bug) and if it works, I can modify it for you into a version that would fit in a file.
Oct
2
revised grepping for multiple items
edited body