Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user@comp ~
- $ touch (a).1
- bash: syntax error near unexpected token `a'
- user@comp ~
- $ touch '(a).1'
- user@comp ~
- $ rename -v 's/.b./b/ \(b\).*
- user@comp ~
- $ mkdir sdfe
- user@comp ~
- $ mv (a)
- user@comp ~
- $ mv '(a).1' sdfe
- user@comp ~
- $ cd sdfe
- user@comp ~/sdfe
- $ rename -v s/.b./b/ \(b\).*
- rename: not enough arguments
- Usage:
- rename [options] expression replacement file...
- Options:
- -v, --verbose explain what is being done
- -s, --symlink act on symlink target
- -h, --help display this help and exit
- -V, --version output version information and exit
- For more details see rename(1).
- user@comp ~/sdfe
- $ rename -v s/.b./b/ \(b\).*
- rename: not enough arguments
- Usage:
- rename [options] expression replacement file...
- Options:
- -v, --verbose explain what is being done
- -s, --symlink act on symlink target
- -h, --help display this help and exit
- -V, --version output version information and exit
- For more details see rename(1).
- user@comp ~/sdfe
- $ ls
- (a).1
- user@comp ~/sdfe
- $ rename -v s/.b./b/ \(b\).*
- rename: not enough arguments
- Usage:
- rename [options] expression replacement file...
- Options:
- -v, --verbose explain what is being done
- -s, --symlink act on symlink target
- -h, --help display this help and exit
- -V, --version output version information and exit
- For more details see rename(1).
- user@comp ~/sdfe
- $ rename -v s/.b./b/ \(b\) .*
- user@comp ~/sdfe
- $ ls
- (a).1
- user@comp ~/sdfe
- $ rename -v s/\(a\)/b/ \(a\).*
- rename: not enough arguments
- Usage:
- rename [options] expression replacement file...
- Options:
- -v, --verbose explain what is being done
- -s, --symlink act on symlink target
- -h, --help display this help and exit
- -V, --version output version information and exit
- For more details see rename(1).
- user@comp ~/sdfe
- $ rename -v s/\(a\)/b/ \(a\) .*
- user@comp ~/sdfe
- $ ls
- (a).1
- user@comp ~/sdfe
- $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement