bashbasicsbyvk is a lightweight, open-source collection of Bash-Python scripts made to optimize workflows and file management in shell environments. It offers comprehensive, high-performance file management with run, copy, erase, delete, overwrite, rename, move, batch-create and batch-delete, organise, and find functions via a simple interactive call — letting you do anything without confusion. The integrated xtract function automates extraction of HTML tables and links from single and multi-page sites, streamlining data harvesting from catalogues, reports, and dashboards.
Run the following blocks in order:
pkg install termux-api
pkg install python -y
pkg install root-repo
pkg uninstall tur-repo -y
pkg update -y
pkg upgrade -y
pkg install tur-repo -y
pkg install clang libopenblas libffi libzmq build-essential -ypkg update
pkg install clang make cmake pkg-config
pkg install python-dev
pkg install ninja
pkg install libandroid-spawn
pkg install libffi-dev
pkg install rclonepip install numpypip install pandaspkg install -y termux-api python git curlpip install requests pandas beautifulsoup4 tqdm pip install openpyxl If you're in Termux, enable storage access in your environment using:
termux-setup-storageGrant the requested storage permission when prompted by Android. This creates symlinks in ~/storage/ for shared directories like Downloads and ensures Termux can read from /storage/emulated/0/.
Allow external app access (required for sharing files to apps like Chrome):
nano ~/.termux/termux.propertiesLocate or add the line:
allow-external-apps = true
Uncomment it if present by removing the #. Save and exit, then restart the Termux app completely — Android Settings → Apps → Termux → Force Stop → Relaunch. This enables the content provider (com.termux.files) to grant read access to URIs for external apps.
Remote Shell (e.g. Google Cloud)
cd ~
curl -LO https://downloads.rclone.org/rclone-current-linux-amd64.zip
unzip -j rclone-current-linux-amd64.zip "*/rclone" -d ~/bin/
chmod 755 ~/bin/rclone
rm rclone-current-linux-amd64.zip
if [[ ":$PATH:" != *":$HOME/bin:"* ]]; then
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
fiLocal Shell
pkg install rcloneConfigure a new Google Drive remote:
rclone config| Step | Prompt | Value |
|---|---|---|
| 1 | New remote? | n |
| 2 | Name | gdrive |
| 3 | Storage type | Google Drive |
| 4 | Client ID / Secret | (leave empty) |
| 5 | Scope | 1 — Full access |
| 6 | Root folder ID | (leave empty) |
| 7 | Advanced config? | n |
| 8 | Auto config? | y |
pip install git+https://github.com/vkdatta/bashbasicsbyvk.gitThis is a personal project — all changes go directly to main. No versioned releases. If a command behaves unexpectedly, force-reinstall to pull the latest state:
pip install -vvv --progress-bar on --upgrade --force-reinstall git+https://github.com/vkdatta/bashbasicsbyvk.gitgit clone https://github.com/vkdatta/bashbasicsbyvk.git| Command | Purpose |
|---|---|
o |
Omni file manager — run, copy, erase, delete, overwrite, rename, move, batch-create, batch-delete, organise, find |
xtract |
Extract all HTML tables & hyperlinks from single or paginated URLs |
oA single interactive call to manage everything in your shell. No flags, no paths.
Supported Operations
| Category | Operations |
|---|---|
| Files | Run, Copy, Erase, Delete, Overwrite, Rename, Move |
| Batch | Batch-create, Batch-delete |
| Navigate | Find, Organise |
xtractExtracts all HTML tables and hyperlinks from one or more paginated web pages in a single invocation. Perfect for harvesting catalogues, reports, and dashboards spread across multiple pages.
URL Patterns & Examples
| Intent | Format | Example |
|---|---|---|
| Single page | Plain URL | example.com/article/p.html |
| Specific page number | URL ending in page number | example.com/article/100 |
| Page range (1 to N) | URL with {N} |
example.com/article/{100} |
Note:
{100}means pages 1 through 100. Curly braces signal a range — no braces means that exact page only.