Search Results

Search: Posts Made By: Yongfeng
7,246
Posted By Yongfeng
Hello Don, thanks so much for your reply. I'm...
Hello Don, thanks so much for your reply. I'm using Advanced Programming in the Unix Environment and Modern Operating Systems as my reference.

As for the question, I just want the parent to get...
7,246
Posted By Yongfeng
no it's not. I'm just self-studying.
no it's not. I'm just self-studying.
7,246
Posted By Yongfeng
Implement the '&&' function in a shell
Hello, I'm currently implementing the && function in a shell using C. For example, if we input cmd1 && cmd2, then cmd2 executes only when cmd1 exits successfully. I'm thinking about:


int main()...
1,612
Posted By Yongfeng
Make directories containing subdirs using mkdir
Hello everybody, I wonder if there's a way to make a directory that contains multiple subdirectories. For example, if I want to make /home/student under the current working directory, how do I do it?...
1,685
Posted By Yongfeng
Hi, I also tested it today and it works fine. But...
Hi, I also tested it today and it works fine. But here I actually want to make it automatic, which means once take a file, we can go through each line of it, extract the line and echo it to another...
1,685
Posted By Yongfeng
How to echo "#" to files?
I'm writing a shell script that's going to copy the contents of some files to other files line by line. Suppose there're lines starting with #, such as #include<stdio.h> in .c files, when I tried to...
1,691
Posted By Yongfeng
actually it's a homework, so I'm supposed to do...
actually it's a homework, so I'm supposed to do it using my own code. Thanks.

---------- Post updated at 10:00 AM ---------- Previous update was at 10:00 AM ----------

thanks a lot.
...
1,691
Posted By Yongfeng
Shell script that generates another shell script
If there's a file called example.txt with contents:
Foo
Bar
Baz
Goo

then I need to generate a shell script that has commands to reconstruct example.txt on another machine:

echo "Foo" >>...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 01:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy