LinuxQuestions.org

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

TechJay 03-06-2013 01: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 02: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 02: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 07:23 AM.