Docs
Hints
-
Print version and architecture with rpm:
rpm -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' glibc
-
Pattern-matching using a variable pattern in perl:
print "match" if ( $mystring =~ /\Q$mypattern/ );
-
In-place editing on every file in a tree using vim:
find -name "*" -exec ex -u NONE -c '%s/OLD/NEW/g' -c 'wq' {} \;
-
The shortcut I use to start rxvt on Cygwin:
C:\cygwin\bin\rxvt.exe -rv -fn "Fixedsys" -e /bin/bash --login -i
-
Put this line at the end of your ~/.bashrc to put the current
time in the titlebar of your xterm or rxvt:
export PS1=$PS1"\[\e]0;[\t]\a\]"
Links
Miscellaneous Documents