This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gzip -cd <filename.tgz> | tar xvf - | |
| tar -zcvf archive-name.tar.gz directory-name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| INSERT into DICCODEDETAIL (IDDICCODE,IDSYSNOVAINSTANCE,IDDICMUNICIPALITY,CODEDETAIL,DESCRIPTION,LANGUAGE,RANKING,LASTUPDATE) | |
| select * from (select IDDICCODE,2,IDDICMUNICIPALITY,CODEDETAIL,DESCRIPTION,LANGUAGE,RANKING, count(*) over ( partition by codedetail, language) total from diccodedetail a where iddiccode = 'UTG_THRESHOLDUNIT' ) where total = 1 | |
| ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sed -n 's/.*AliasName="\([^"]*\)"/\1/p' anyViewObject.xml > file1; | |
| sed -n 's/.* Name=\("[^"]*"\)/\1/p' SearchtgudossierView.xml > file2; | |
| awk 'BEGIN {OFS=" "}{ | |
| getline line < "file2" | |
| print $0,"=",line,"," | |
| } ' file1; | |
| rm file1 file2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :FOR ${a} IN @{as} | |
| \ Do something with ${a} | |
| What you need to remember: | |
| 1. After the line with FOR every line that relates to loop should start with \ (backslash) | |
| 2. After the backslash you need to make 2 spaces at least! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .Create and prepare local git repository from svn repository | |
| $git svn init https://.../trunk Nova | |
| $git svn fetch -rHEAD (without all previous history) or $git svn fetch -r<revision>:HEAD (consider all previous history from any svn revision) | |
| .Update from svn repository or commit to it | |
| $git svn rebase | |
| $git svn dcommit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find . -name "*.doc" | while read file; do new_file=$(echo $file | sed s/\ /_/g); mv "$file" "$new_file"; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git reset --hard # removes staged and working directory changes | |
| git clean -f -d # remove untracked files | |
| git clean -f -x -d # CAUTION: as above but removes ignored files like config. | |
| http://www.kernel.org/pub/software/scm/git/docs/git-clean.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git config --global core.excludesfile '~/.gitignore' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ svn status --no-ignore | |
| $ svn propget svn:ignore | |
| $ svn propset svn:ignore "*.xml" dir_name |
NewerOlder