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.
|
|
06-22-2017, 04:39 PM
|
#1
|
LQ Newbie
Registered: Jun 2017
Posts: 3
Rep:
|
linking file from one another
i ve two files Grade_main.sh and Grade_sub.sh and i want to retrieve data from Grade_main.sh into Grade_sub.sh how do i do it?
.what i tried?
Grade_sub.sh Akers John 90 88 80 70
now i want Grade_sub.sh to take 'akers' as firstname(Which is in Grade_main.sh) and print it ,how do i do it?
Last edited by chetanraj; 06-22-2017 at 05:41 PM.
|
|
|
06-22-2017, 05:28 PM
|
#2
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
OK, we're not here to do your homework. If you're having trouble with some part of the homework, we can maybe make a suggestion to help you out.
|
|
|
06-22-2017, 07:39 PM
|
#3
|
Senior Member
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
|
What language are you using? Posting code helps a lot. Please post more info.
|
|
|
06-22-2017, 08:13 PM
|
#4
|
Senior Member
Registered: Apr 2010
Posts: 2,236
|
Quote:
Originally Posted by AwesomeMachine
OK, we're not here to do your homework. If you're having trouble with some part of the homework, we can maybe make a suggestion to help you out.
|
Yes, that's how I found this post. Some sort of a homework.
Trawl the web, use this keyword: How to reference a file for variables in Bash script
Last edited by JJJCR; 06-22-2017 at 08:21 PM.
Reason: edit
|
|
|
All times are GMT -5. The time now is 11:12 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
|
|