Skip to content

Instantly share code, notes, and snippets.

@jestan
Last active August 29, 2015 14:26
Show Gist options
  • Select an option

  • Save jestan/253f617aae2edf542b9a to your computer and use it in GitHub Desktop.

Select an option

Save jestan/253f617aae2edf542b9a to your computer and use it in GitHub Desktop.

Revisions

  1. jestan revised this gist Aug 13, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -8,5 +8,5 @@

    3. Find corrupted jar files in local maven repostiory

    find ~/.m2/repository/ -name "*jar" | xargs -L 1 zip -T | grep error | grep invalid
    find ~/.m2/repository/ -name "*jar" | xargs -L 1 zip -T | grep error | grep invalid

  2. jestan revised this gist Aug 13, 2015. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -6,5 +6,7 @@

    sed 's/$/<data>/' input.txt > output.txt

    3. To be continued
    3. Find corrupted jar files in local maven repostiory

    find ~/.m2/repository/ -name "*jar" | xargs -L 1 zip -T | grep error | grep invalid

  3. jestan created this gist Aug 3, 2015.
    10 changes: 10 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    1. Count unique lines in a file

    cat <file-path> | sort | uniq | wc -l

    2. Append Given Characters in each line of the file

    sed 's/$/<data>/' input.txt > output.txt

    3. To be continued