Reply to post: ZSH

Top tools for junior Linux admins

Anonymous Coward
Anonymous Coward

ZSH

I switched after 18 years of CSH, TCSH and BASH, and it was worth it, even if just for the double-asterisk.

Other top old-timer tricks - to copy a whole directory between machines without rsync:

tar czf - srcdir | ssh remotehost tar zvxf -

I still get murmurs of approval for that one. And my other favourite for batch renaming files:

1. ls -1 | awk '{ print "\""$1"\"" }' > file1

3. cp file1 file2

4. vi file2 to edit the filenames with regex as you need to; then

5. paste file1 file2 > file3

6. vi file3 to insert "mv " at the start of each line.

7. source file3 to run it.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

SUBSCRIBE TO OUR WEEKLY TECH NEWSLETTER

Biting the hand that feeds IT © 1998–2019