LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-22-2017, 04:39 PM   #1
chetanraj
LQ Newbie
 
Registered: Jun 2017
Posts: 3

Rep: Reputation: Disabled
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.
 
Old 06-22-2017, 05:28 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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.
 
Old 06-22-2017, 07:39 PM   #3
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
What language are you using? Posting code helps a lot. Please post more info.
 
Old 06-22-2017, 08:13 PM   #4
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,236

Rep: Reputation: 458Reputation: 458Reputation: 458Reputation: 458Reputation: 458
Question

Quote:
Originally Posted by AwesomeMachine View Post
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
 
Old 06-23-2017, 12:12 AM   #5
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Suggest OP read this: http://www.linuxquestions.org/questi...ml#post5669556
(which is also buried in my current .sig as the 'AndOr' &|)

Looks like original post#1 attachment (which OP edited out) was related to:
https://www.coursehero.com/file/1748...13-Assignment1

Best wishes to OP for success in their studies.

Last edited by Jjanel; 06-23-2017 at 12:17 AM.
 
  


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
Linking .a library file rohaanembedded Programming 15 09-13-2013 03:52 AM
[SOLVED] issue linking .SO "g++: -lcyusb: linker input file unused because linking not done" rohaanembedded Red Hat 5 07-26-2013 01:14 AM
linking the .so file n using rohaanembedded Programming 2 05-15-2013 09:04 AM
What lib is an so file linking to knobby67 Programming 2 05-07-2012 03:16 AM
linking to older file bhert Linux - General 2 02-08-2007 02:14 PM

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

All times are GMT -5. The time now is 11:12 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