Tunnel / Upload Table With Field And Record Delimiters
Upload Table With Field And Record Delimiters
Tunnel command syntax to upload table with field and record delimiters. Copyable examples, output expectations, and common mistakes.
$
Terminal tunnel upload <path/to/file> <table_name> -fd <field_delim> -rd <record_delim>; tunnel upload <path/to/file> <table_name> -fd <field_delim> -rd <record_delim>; #!/bin/bash
# Upload Table With Field And Record Delimiters
tunnel upload {{path/to/file}} {{table_name}} -fd {{field_delim}} -rd {{record_delim}}; import subprocess
# Upload Table With Field And Record Delimiters
# Make sure to replace <placeholders> with actual values
def run_command():
cmd = [
"tunnel",
"upload",
"<path/to/file>",
"<table_name>",
"-fd",
"<field_delim>",
"-rd",
"<record_delim>;"
]
try:
print(f"Executing: {' '.join(cmd)}")
subprocess.run(cmd, check=True)
except subprocess.CalledProcessError as e:
print(f"Error: {e}")
except FileNotFoundError:
print("Error: tunnel not found. Please install it first.")
if __name__ == "__main__":
run_command() Command Breakdown
What each part is doing
-
tunnel - Base Command
- The executable that performs this operation. Here it runs Tunnel before the shell applies any redirect operators.
-
<path/to/file> - Input Files
- The file path or paths supplied to this command.
-
<table_name> - table name
- The value supplied for table name.
-
<field_delim> - field delim
- The value supplied for field delim.
-
<record_delim> - record delim
- The value supplied for record delim.
-
-fd - Command Option
- Tool-specific option used by this command invocation.
-
-rd - Command Option
- Tool-specific option used by this command invocation.
Alternative Approaches
Comparable commands in other tools
Alternative filesystem tools for the same job.
Airpaste / Send File
airpaste < <path/to/file> Wormhole / Send File Custom Code Wormhole wormhole send --code <custom_code> <path/to/file> Ascii Xfr / Send File Ascii Protocol Linux ascii-xfr -s <path/to/file> Chat / Use Report File For Logging Strings chat -r <path/to/report_file> '<expect_send_pairs>' Kdocker / Display Cursor Send Window With Icon kdocker -i /<path/to/icon>