Normalize the final new line
Fixes #310 Some files had no newlines, some had 1 newline and some more than 1 newline. Normalize them all to have only 1 newline at the end of all files.
This commit is contained in:
@@ -17,5 +17,3 @@
|
||||
- Sum the values in the first column and pretty-print the values and then the total
|
||||
|
||||
`awk '{s+=$1; print $1} END {print "--------"; print s}' {{filename}}`
|
||||
|
||||
|
||||
|
@@ -9,4 +9,3 @@
|
||||
- Display the date using a custom format
|
||||
|
||||
`date +"%d/%m/%Y %H:%M:%S"`
|
||||
|
||||
|
@@ -9,4 +9,3 @@
|
||||
- display all file systems and their disk usage in human readable form
|
||||
|
||||
`df -h`
|
||||
|
||||
|
@@ -25,4 +25,3 @@
|
||||
- Clear CSS and JavaScript caches
|
||||
|
||||
`drush cc css-js`
|
||||
|
||||
|
@@ -13,5 +13,3 @@
|
||||
- Include libraries from a different path
|
||||
|
||||
`gcc {{source.c}} -o {{executable}} -I{{header_path}} -L{{library_path}} -l{{library_name}}`
|
||||
|
||||
|
||||
|
@@ -13,4 +13,3 @@
|
||||
- Also add ignored files
|
||||
|
||||
`git add -f`
|
||||
|
||||
|
@@ -13,4 +13,3 @@
|
||||
- Combine audio from one file and video from another
|
||||
|
||||
`MP4Box -add {{input1.mp4}}#audio -add {{input2.mp4}}#video {{output.mp4}`
|
||||
|
||||
|
@@ -19,5 +19,3 @@
|
||||
- Play the given audio in reverse
|
||||
|
||||
`play {{audiofile}} reverse`
|
||||
|
||||
|
||||
|
@@ -21,4 +21,3 @@
|
||||
- Detach from inside a screen
|
||||
|
||||
`ctrl+A D`
|
||||
|
||||
|
@@ -18,5 +18,3 @@
|
||||
- replace all occurrences of multiple strings in a file
|
||||
|
||||
`sed -e 's/{{find}}/{{replace}}/g' -e 's/{{find}}/{{replace}}/g' {{filename}}`
|
||||
|
||||
|
||||
|
@@ -13,4 +13,3 @@
|
||||
- Split a file with at most 512 bytes of lines in each split.
|
||||
|
||||
`split -C 512 {{filename}}`
|
||||
|
||||
|
@@ -25,4 +25,3 @@
|
||||
- capture all traffic except traffic over port 22 and save to a dump file
|
||||
|
||||
`tcpdump -w dumpfile.pcap not port 22`
|
||||
|
||||
|
@@ -17,4 +17,3 @@
|
||||
- Create new user with supplementary groups (mind the lack of whitespace)
|
||||
|
||||
`useradd -G {{group1,group2}} {{name}}`
|
||||
|
||||
|
@@ -13,4 +13,3 @@
|
||||
- count characters in file (taking multi-byte character sets into account)
|
||||
|
||||
`wc -m {{file}}`
|
||||
|
||||
|
@@ -14,4 +14,3 @@
|
||||
- send a message with timeout (default 300)
|
||||
|
||||
`wall -t {{seconds}} {{file}}`
|
||||
|
||||
|
@@ -9,5 +9,3 @@
|
||||
- Prevent mac from sleeping until a command completes
|
||||
|
||||
`caffeinate -s {{command}}`
|
||||
|
||||
|
||||
|
@@ -9,4 +9,3 @@
|
||||
- Burn a folder as an ISO9660 filesystem onto a DVD. Don't verify and eject when complete.
|
||||
|
||||
`drutil burn -noverify -eject -iso9660`
|
||||
|
||||
|
@@ -9,4 +9,3 @@
|
||||
- Place the results of a command in the clipboard
|
||||
|
||||
`find . -type t -name "*.png" | pbcopy`
|
||||
|
||||
|
@@ -9,4 +9,3 @@
|
||||
- Use the contents of the clipboard as input to a command.
|
||||
|
||||
`pbpaste | grep foo`
|
||||
|
||||
|
@@ -9,4 +9,3 @@
|
||||
- Print OSX Build
|
||||
|
||||
`sw_vers -buildVersion`
|
||||
|
||||
|
Reference in New Issue
Block a user