LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Symbolic links and piping info... (http://www.linuxquestions.org/questions/linux-newbie-8/symbolic-links-and-piping-info-4175452909/)

TechJay 03-06-2013 02:59 AM

Symbolic links and piping info...
 
So i created a symbolic link...
Code:

ln -s /sbin/ifconfig ifconfig
And i want to "pipe" this output onto a file i made in /home/jb/data called mydata.txt

Im not sure what it is called in linux but in programming (perl and java) its piping/ file io, i guess append ? How would i do this ? Thanks !

ifconfig >> mydata.txt ?

dont want to overwrite the 2 lines i have in there btw

:newbie:

chrism01 03-06-2013 03:03 AM

I don't know why you created the link; ifconfig works for me as a non-root user...

Anyway, its not piping into a file, its redirection; in fact 'output to ...' eg
Code:

ifconfig >/home/jb/data/mydata.txt
Here's some good links for bash and related stuff.
http://rute.2038bug.com/index.html.gz
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html
http://www.tldp.org/LDP/abs/html/

TechJay 03-06-2013 03:06 AM

thanks for the links...ive been reading a little... the link ws required in the practice asgn im doin


All times are GMT -5. The time now is 11:38 PM.