We have hosted the application command output to html table in order to run this application in our online workstations with Wine or directly.
Quick description about command output to html table:
Please watch the Video below, to convert any file or a command output into a nice html table, in less than 5 Minutes time. The output html file can then be browsed from any location, using a local webserver or an internet www domain.Usage Examples: (Type them on Terminal)
cd ~/Downloads/tabulate # location
chmod +x ./tabulate.sh
cat student_marks.csv | { cat ; echo ; } | ./tabulate.sh -d "," -t "My School" -h "First Term" > marks.html
# or > /var/www/html/marks.html
-d specifies delimiting character, which is in between your input columns
-t specifies page title
-h specifies a header
Browse marks.html with browser now, either by double clicking file, from file manager or inputting location on your browser.
Other Examples:
df -h | { cat ; echo ; } | ./tabulate.sh -d " " -t "My System" -h "Disk Free" > diskfree.html
Refer Wiki, Tickets, Discussion for more technical inputs and new jobs, that can arise, with this script.
Please see below for LATEST UPDATES.
Features:
- Another Example: Tab Seperated Values : cat test.tsv | { cat ; echo ; } | ./tabulate.sh -d $'\t' > test.html. See Wiki for more such special characters.
- The | { cat ; echo ; } ensures a blank line at the end of your input records, to help process the last record as well.
- LATEST UPDATE : For Systems without Bash, but having other shells, Some Unix Systems, Old Systems or Systems where this script fails for some reason, Please use this alternate Script : https: //sourceforge.net/projects/command-output-to-html-table2/
- Please note that this script will be giving "Permission Denied" errors while operating from FAT32 pen drives. Copy them to a permission aware filesystems like ext, hfs etc. and then work on it.
Audience: End Users/Desktop.
User interface: Command-line.
Programming Language: Unix Shell.
.
©2024. Winfy. All Rights Reserved.
By OD Group OU – Registry code: 1609791 -VAT number: EE102345621.