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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-14-2017, 01:21 PM
|
#1
|
LQ Newbie
Registered: Nov 2015
Posts: 3
Rep: 
|
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.
|
|
|
04-14-2017, 03:06 PM
|
#2
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,954
|
Quote:
Originally Posted by rao1995
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.
|
|
|
09-15-2024, 10:36 AM
|
#3
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,672
|
Quote:
Originally Posted by laptopnick
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.
|
|
|
09-20-2024, 02:44 PM
|
#4
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153
|
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.
|
|
|
09-20-2024, 05:28 PM
|
#5
|
Senior Member
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,918
|
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.
|
09-20-2024, 07:44 PM
|
#6
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,672
|
Quote:
Originally Posted by boughtonp
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
|
|
|
09-20-2024, 11:47 PM
|
#7
|
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,352
|
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.
|
All times are GMT -5. The time now is 04:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|