LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-14-2017, 01:21 PM   #1
rao1995
LQ Newbie
 
Registered: Nov 2015
Posts: 3

Rep: Reputation: Disabled
create table using linux cli and to pdf


I have a table which looks like the one in the attachment

This is done in excel but i will be automating it in a linux EC2 AWS server instance
I can get the ‘Today NAV’ value from an API call in the linux AWS ec2 server & update all other values using formulas.
How do i create this kind of table and output to a pdf file using CLI and bash scripting only?
PS : Its a pdf because i ll be using it to send an email daily to my gmail id so i can view the statement on my cell phone.
Thank You for the help.
Attached Thumbnails
Click image for larger version

Name:	net.PNG
Views:	39
Size:	165.6 KB
ID:	24775  
 
Old 04-14-2017, 03:06 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,954
Blog Entries: 13

Rep: Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986
Quote:
Originally Posted by rao1995 View Post
How do i create this kind of table and output to a pdf file using CLI and bash scripting only?
You haven't tried to create a PDF file from the CLI? Regarding BASH scripting, how well do you know it?

As you know, it is helpful to other members to understand what expertise you have with these actions so they can best offer you suggestions.

There are a variety of commands or tools to convert text or standard output to a PDF file, text2pdf, and convert are two options.

My most common statement about BASH scripting is that whatever you can write in the command line, you can put into a BASH script, where the command line is the equivalent of live scripting.

Please take the time to look up and choose a PDF generation tool or command, verify you have it, or can install it on your system. If you find one and have trouble installing it on your system, then post the specification of your distribution and we'll help first with that.

Next, people can help with BASH scripting, and as I said earlier, it would be helpful to know if you already know how to write and use a script, of any language, BASH or other.
 
Old 09-15-2024, 10:36 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,672

Rep: Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151
Quote:
Originally Posted by laptopnick View Post
There are good online editors available for such purposes now.
And none of that matters to the OP, since they specifically asked for Linux CLI tools...and they asked SEVEN YEARS AGO.
 
Old 09-20-2024, 02:44 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Hey, laptopnick, as this is your first post to LQ, I'll just say

Welcome to LQ!

You didn't realise that responding to "dead" and ancient posts is sort-of frowned upon.

No matter, you tried to help, and this is appreciated by some of us grumpy old farts.

Please don't give up on LQ, we are all here to help each other, really.
 
Old 09-20-2024, 05:28 PM   #5
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,918

Rep: Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783

Tredegar, you're responding to a spammer.

When TB0ne posted, the post was literally the ten words quoted in post #4 - which is not relevant nor timely, as per the warning laptopnick ignored when they posted:
Quote:
Please note that this thread has not been replied to in over 6 months. Please ensure your reply is still relevant and timely.
Unsurprisingly, they returned four days later, and edited their post to include the version you responded to, along with the link to a blatant scam website.

Even if it was a genuine site (it isn't), a paid subscription service is still not an answer to how to convert a spreadsheet to PDF using the command line.

 
1 members found this post helpful.
Old 09-20-2024, 07:44 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,672

Rep: Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151
Quote:
Originally Posted by boughtonp View Post
Tredegar, you're responding to a spammer.

When TB0ne posted, the post was literally the ten words quoted in post #4 - which is not relevant nor timely, as per the warning laptopnick ignored when they posted:


Unsurprisingly, they returned four days later, and edited their post to include the version you responded to, along with the link to a blatant scam website.

Even if it was a genuine site (it isn't), a paid subscription service is still not an answer to how to convert a spreadsheet to PDF using the command line
Exactly why I always quote replies, so there's never "I didn't say that!". Thanks
 
Old 09-20-2024, 11:47 PM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,352

Rep: Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385
Why don't I update this thread with a 2024 reply.

Was just googling, and oh

https://github.com/AxlLind/mdtable-cli

https://github.com/haltcase/tablemark-cli

You then use Pandoc to convert the Markdown file to PDF.

Last edited by dugan; 09-21-2024 at 12:40 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kali Linux: Using CLI to capture network connections and create a file Kenux Linux - Newbie 4 09-26-2015 06:49 PM
Create Network Share via Samba on Linux machine via CLI Bindu19 Linux - Newbie 5 01-15-2014 02:34 PM
cups-pdf in OpenSuse 11.2 doesn't create pdf zorro_kwh Linux - Newbie 2 03-09-2011 10:53 AM
pdf table to html table? frieza Linux - Software 4 02-14-2009 06:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration