Changeset 3259


Ignore:
Timestamp:
Nov 25, 2018, 8:31:58 PM (3 years ago)
Author:
Александър Шопов
Message:

bashrc: съвместимост с BSD sed (и GNU sed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/bashrc

    r3111 r3259  
    1010alias m='msgfmt -cvv --check-accelerators=_'
    1111alias e='emacs -nw'
    12 alias d='sed -n "/^\(#~ \)\?msgstr/,/^\(#~ \)\?msgid/p" bg.po | grep -v "^#[^~]" | grep -v "^$"| grep -v "^\(#~ \)\?msgid" | sed "s/_//"  > 1 '
     12alias d='sed -n "/^\(#~ \)\{0,1\}msgstr/,/^\(#~ \)\{0,1\}msgid/p" bg.po | grep -v "^#[^~]" | grep -v "^$"| grep -v "^\(#~ \)\?msgid" | sed "s/_//"  > 1 '
    1313alias a='cat 1 | hunspell -d bg_BG -l | grep -vi "[a-z][a-z]*" | sort -u > a'
    1414alias pushgtp='for file in *.bg.po; do name=`echo $file | sed "s/^\([^.]*\)[.]\([^.]*\)[.].*$/\1/g"`; branch=`echo $file | sed "s/^\([^.]*\)[.]\([^.]*\)[.].*$/\2/g"`; svn ci $file -m "$name: committed in $branch"; done'
Note: See TracChangeset for help on using the changeset viewer.