Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. $ rename -n 's/tes*/file 1/' *
  2. test-file-1 renamed as file 1t-file-1
  3.  
  4. $ rename -n 's/^*/file 1/' *
  5. ^* matches null string many times in regex; marked by <-- HERE in m/^* <-- HERE / at (eval 1) line 1.
  6. example2 renamed as file 1example2
  7. ^* matches null string many times in regex; marked by <-- HERE in m/^* <-- HERE / at (eval 2) line 1.
  8. test-file-1 renamed as file 1test-file-1
  9. ^* matches null string many times in regex; marked by <-- HERE in m/^* <-- HERE / at (eval 3) line 1.
  10. third renamed as file 1third
  11.  
  12. $ rename -n 's/tes.*/file 1/' *
  13. test-file-1 renamed as file 1
  14.  
  15. $ rename -n 's/.*/file 1/' *
  16. example2 renamed as file 1
  17. test-file-1 renamed as file 1
  18. third renamed as file 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement