Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: shellfu

22 Jul

Trasfer over the network

Transfer stdin and stdout to and from machines over the network


ssh remote_machine 'cat - > file' < file
admin Posted in Command Line, Linux cat, filler, network, shellfu, ssh, stdin Leave a comment
07 Jul

Add Line Numbers

Use this command to add line numbers to a text file…


sed = filename.txt | sed 'N;s/\n/\t/' > filename_number.txt
admin Posted in Command Line, Linux command, line, Linux, number, numbering, sed, shellfu 3 Comments
04 Jul

Rename Command

Different way to use the rename command.


rename 's/.html$/.php/' *.html
admin Posted in Command Line, Linux command, file, Linux, rename, shellfu Leave a comment
02 Jul

Create Random Password

Use this command to create a random password


< /dev/urandom tr -dc A-Za-z0-9_ | head -c8

Also see…

admin Posted in Command Line, Linux command, head, Linux, password, random, shell, shellfu, tr, urandom Leave a comment
30 Jun

CDPATH

CDPATH is to cd what PATH is to exectable. You can go to a folder inside any of the CDPATH folders by just cd 'folder name' – no mater where you are currently.


export CDPATH='.:~:/var/www/html:~/Scripts'
admin Posted in Command Line, Linux cdpath, command, Linux, path, shellfu Leave a comment

Post navigation

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑