Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
4
Newest
 Teacher
Impact
~1k people reached

  • 0 posts edited
  • 0 helpful flags
  • 13 votes cast
Dec
22
comment How to add a newline to the end of a file?
The fact that I can use this in a pipeline is helpful. This allows me to count the number of rows in a CSV file, excluding the header. And it helps get an accurate line count on windows files that don't end with a newline or carriage return. cat file.csv | tr "\r" "\n" | { cat; echo; } | sed "/^[[:space:]]*$/d" | tail -n +2 | wc -l
Jul
15
awarded  Teacher
Jul
14
answered Replace a line with the line that I have in the buffer in vi
Jul
14
awarded  Supporter
Jul
14
awarded  Scholar
Jul
14
comment Get a list of 3 letter commands on Mac OS X
Chosen for its simplicity.
Jul
14
accepted Get a list of 3 letter commands on Mac OS X
Jul
13
comment Get a list of 3 letter commands on Mac OS X
This didn't seem to work for me. I tried to echo $IFS and got an empty string.
Jul
13
awarded  Student
Jul
13
comment Get a list of 3 letter commands on Mac OS X
I'm interested in seeing my options before picking a name though.
Jul
13
asked Get a list of 3 letter commands on Mac OS X