Skip to content

blcc/myL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

# myL.sh
This script demonstrate the idea of shorten url at local host.

# Usage:
Shorten url:
```
$ myL.sh https://www.google.com
L://ef7ef
```

Restore url (after shorten it):
```
$ myL.sh L://ef7ef
https://www.google.com
```

# Why use it?
If you write some script to extract urls from website, but the result urls are long enough to ruin your graceful layout. Then this idea may help.

# How it work?
This script store input string to a file name with first few character of sha1sum.
You can also apply a database to store the links, it save storage but increase dependency.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages