16,943 reputation
22664
bio website shelfari.com/joseph-riad
location College Station, TX
age 27
visits member for 2 years, 1 month
seen 7 hours 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


21h
revised Replace or append a line with string within a file
added 706 characters in body
21h
comment Replace or append a line with string within a file
@frank My point is that if you're using Puppet, then using sed for this kind of task is not the best approach.
21h
revised Replace or append a line with string within a file
added 238 characters in body
21h
answered Replace or append a line with string within a file
2d
comment Remove a character between 2 known strings
@mikeserv One's man "easy" is another man's hieroglyphs, I guess :D
Dec
18
answered Remove a character between 2 known strings
Dec
18
comment Remove a character between 2 known strings
Unfortunately, I'm not familiar with hdfs so this doesn't explain to me why sed is a necessity here.
Dec
18
comment Remove a character between 2 known strings
FYI: awk or perl would have a much easier time with this.
Dec
18
comment Remove a character between 2 known strings
You got it. Welcome to U&L :)
Dec
18
reviewed Edit Remove a character between 2 known strings
Dec
18
revised Remove a character between 2 known strings
improved formatting and deleted unnecessary sentence
Dec
18
comment Remove a character between 2 known strings
I removed the asterisks at the beginning and end of your examples as I assumed they were intended for mark-up purposes. If I was wrong, please roll back to your earlier version.
Dec
18
revised Remove a character between 2 known strings
added 8 characters in body
Dec
18
comment tab separation of the file
If you like golf: perl -ne '$,="\t";print split//' file > new_file
Dec
18
comment tab separation of the file
@mikeserv Probably not. As far as I can tell, $1=$1 doesn't do anything but tricks awk into thinking the first field has been re-assigned so that it knows to insert the OFS between adjacent fields. The 1 at the end is to simply return a "true" value and cause awk to print the current record by default.
Dec
18
revised tab separation of the file
deleted 5 characters in body
Dec
18
comment tab separation of the file
@mikeserv Thanks. I have promised myself to learn proper awk one day, too :)
Dec
18
answered tab separation of the file
Dec
18
awarded  Popular Question
Dec
17
answered Inner loop conditions shall depend on outer loop run