{"id":23282187,"url":"https://github.com/alilotfi23/contacts-simulator","last_synced_at":"2026-02-25T16:33:23.854Z","repository":{"id":178137922,"uuid":"661404417","full_name":"alilotfi23/contacts-simulator","owner":"alilotfi23","description":"contacts book simulator with shell script","archived":false,"fork":false,"pushed_at":"2026-01-28T09:56:16.000Z","size":32,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-29T01:15:23.014Z","etag":null,"topics":["shell-script","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alilotfi23.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-07-02T18:28:59.000Z","updated_at":"2026-01-28T09:56:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3ef918b-0929-4846-90cf-042325a286fb","html_url":"https://github.com/alilotfi23/contacts-simulator","commit_stats":null,"previous_names":["alilotfi23/contacts-simulator"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/alilotfi23/contacts-simulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilotfi23%2Fcontacts-simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilotfi23%2Fcontacts-simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilotfi23%2Fcontacts-simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilotfi23%2Fcontacts-simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alilotfi23","download_url":"https://codeload.github.com/alilotfi23/contacts-simulator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alilotfi23%2Fcontacts-simulator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29830221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T15:41:19.027Z","status":"ssl_error","status_checked_at":"2026-02-25T15:40:47.150Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["shell-script","sqlite"],"created_at":"2024-12-20T00:14:55.661Z","updated_at":"2026-02-25T16:33:23.822Z","avatar_url":"https://github.com/alilotfi23.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Personal Contact Notebook\n\n## Overview\n\nPersonal Contact Notebook is a Bash script to manage a personal contact database using SQLite. It allows you to insert, list, modify, and delete contacts. This tool provides a simple CLI interface to interact with your contacts database.\n\n## Prerequisites\n\n- `sqlite3` must be installed on your system. You can install it using your package manager. For example, on Ubuntu, you can install it using:\n  ```bash\n  sudo apt-get install sqlite3\n  ```\n\n## Usage\n\n1. **Insert Contact**\n2. **List Contacts**\n3. **Modify Contact**\n4. **Delete Contact**\n5. **Clear Screen**\n6. **Exit**\n\n## Script Details\n\n### Script Variables\n\n- `DATABASENAME`: The name of the SQLite database file. The default is `personalcontact.db`.\n- `CREATESQL`: SQL statement to create the `CONTACT` table if it does not exist.\n- `SQLITPATH`: Path to the `sqlite3` executable. The default is `/usr/bin/sqlite3`.\n\n### Functions\n\n- **insert()**: Inserts a new contact into the database.\n- **show_list()**: Lists all contacts in the database.\n- **search_contact()**: Searches for a contact by name and family.\n- **modify_contact()**: Modifies an existing contact.\n- **delete_contact()**: Deletes a contact.\n- **data_validation_check()**: Validates the data entered by the user.\n- **data_duplication_check()**: Checks for duplicate contacts.\n\n### Main Menu\n\nDisplays the main menu and prompts the user to select an operation.\n\n## Installation\n\n1. Ensure `sqlite3` is installed on your system.\n2. Download or clone the script to your local machine.\n3. Make the script executable:\n   ```bash\n   chmod +x personal_contact_notebook.sh\n   ```\n\n## Running the Script\n\nTo run the script, execute the following command in your terminal:\n```bash\n./contact.sh\n```\n\n## Contact Table Structure\n\nThe `CONTACT` table has the following structure:\n- `ID`: Integer, primary key, auto-increment.\n- `NAME`: VARCHAR(30), contact's first name.\n- `FAMILY`: VARCHAR(60), contact's last name.\n- `MOBILEPHONE`: INTEGER, contact's mobile phone number.\n- `HOMEPHONE`: INTEGER, contact's home phone number.\n- `MAIL`: VARCHAR(70), contact's email address.\n- `DEL`: INTEGER, flag to mark deleted contacts.\n\n## Example\n\n### Inserting a Contact\n\n1. Select `Insert Contact` from the main menu.\n2. Enter the required contact details.\n3. The contact will be inserted into the database if all validations pass.\n\n### Listing Contacts\n\n1. Select `List Contact` from the main menu.\n2. All contacts will be displayed in the terminal.\n\n### Modifying a Contact\n\n1. Select `Modify Contact` from the main menu.\n2. Enter the name and family of the contact you want to modify.\n3. Enter the new details for the contact.\n\n### Deleting a Contact\n\n1. Select `Delete Contact` from the main menu.\n2. Enter the name and family of the contact you want to delete.\n3. Confirm the deletion.\n\n## License\n\nThis project is licensed under the MIT License.\n\n## Acknowledgements\n\nThis script is a simple personal project to manage contact information. Special thanks to the SQLite team for providing a lightweight and powerful database engine.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falilotfi23%2Fcontacts-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falilotfi23%2Fcontacts-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falilotfi23%2Fcontacts-simulator/lists"}