Skip to content

Commit

Permalink
Add more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mdom committed Dec 14, 2016
1 parent 8746270 commit 8c70c4f
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 10 deletions.
27 changes: 22 additions & 5 deletions README.pod
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,30 @@ Suppose the current directory contains the following files:

Now you want to add the tag I<family> to all pictures.

$ squaretag add family *
$ squaretag add -v family *
picture01.jpg -> picture01[family].jpg
picture02 -> picture02[family]

The filenames now contain the tag I<family>:
Files can have multiple tags

$ ls
picture01[family].jpg
pciture02[family]
$ squaretag add -v myself picture01[family].jpg
picture01[family].jpg -> picture01[family,myself].jpg

You can rename single tags

$ squaretag rename -v myself me picture01[family,myself].jpg
picture01[family,myself].jpg -> picture01[family,me].jpg

Or delete a tag

$ squaretag remove me -v picture01[family,me].jpg
picture01[family,me].jpg -> picture01[family].jpg

And if you have enough, you can simple clear all tags

$ squaretag clear *
picture01[family].jpg -> picture01.jpg
picture02[family] -> picture02

=head1 COMMANDS

Expand Down
27 changes: 22 additions & 5 deletions bin/squaretag
Original file line number Diff line number Diff line change
Expand Up @@ -316,13 +316,30 @@ Suppose the current directory contains the following files:
Now you want to add the tag I<family> to all pictures.
$ squaretag add family *
$ squaretag add -v family *
picture01.jpg -> picture01[family].jpg
picture02 -> picture02[family]
The filenames now contain the tag I<family>:
Files can have multiple tags
$ ls
picture01[family].jpg
pciture02[family]
$ squaretag add -v myself picture01[family].jpg
picture01[family].jpg -> picture01[family,myself].jpg
You can rename single tags
$ squaretag rename -v myself me picture01[family,myself].jpg
picture01[family,myself].jpg -> picture01[family,me].jpg
Or delete a tag
$ squaretag remove me -v picture01[family,me].jpg
picture01[family,me].jpg -> picture01[family].jpg
And if you have enough, you can simple clear all tags
$ squaretag clear *
picture01[family].jpg -> picture01.jpg
picture02[family] -> picture02
=head1 COMMANDS
Expand Down

0 comments on commit 8c70c4f

Please sign in to comment.