Skip to primary content
Skip to secondary content

Belgarion's blog

Just another Blog weblog

Belgarion's blog

Main menu

  • Home

Category Archives: Uncategorized

Uploading termcap/terminfo for current $TERM to remote server

Posted on December 5, 2009 by Belgarion

Termcap:

infocmp | ssh hostname 'dd of=term.terminfo; tic -C term.terminfo | sed "\$s/$/AF=\\\\E[3%dm:AB=\\\\E[4%dm:/" >> .termcap; rm -f term.terminfo'

Terminfo:

infocmp | ssh hostname 'dd of=term.terminfo; tic -o .terminfo/ term.terminfo; rm -f term.terminfo'
Posted in Uncategorized

Edit only last line with sed

Posted on December 5, 2009 by Belgarion
sed '$s/regexp/replacement/'
Posted in Uncategorized

Recent Posts

  • LDAP+Kerberos authentication on Debian Squeeze (+ AFS client)
  • Installing OpenAFS client on Windows 7 (64bit)
  • Uploading termcap/terminfo for current $TERM to remote server
  • Edit only last line with sed
  • Converting raw harddrive image to virtualbox disk

Ads

Proudly powered by WordPress

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close