Search Results

Search: Posts Made By: Yongfeng
7,347
Posted By Corona688
The first and second command in an && chain...
The first and second command in an && chain aren't parent/child as much as siblings. The parent controlling them gets the value, and can tell whether to launch the next one.
1,809
Posted By Don Cragun
This is the second homework violation for part of...
This is the second homework violation for part of the same homework project. As you have been told in private mail twice, homework must be filed in the Homework and Coursework Questions forum and...
1,809
Posted By CarloM
Try echo "echo \"${tmp}\" >> $i" >> bundle.sh. ...
Try echo "echo \"${tmp}\" >> $i" >> bundle.sh.

EDIT: But if a line in bin.sh has double-quotes in it you're still going to have a problem. You could transform the line first to escape any...
1,669
Posted By CarloM
mkdir -p home/student will create home (if it...
mkdir -p home/student will create home (if it doesn't already exist) and home/student under the current directory (note the lack of leading slash - otherwise you're specifying an absolute path).
1,809
Posted By ctsgnb
For me it works fine : $ echo...
For me it works fine :
$ echo "#include<stdio.h>" >> myls.c
$ cat myls.c
#include<stdio.h>
$
On which OS are you running?
Please provide a full example that demonstrate the issue
1,754
Posted By pravin27
How about this ? $ cat test123 foo bar ...
How about this ?
$ cat test123
foo
bar
baz
goo
foo baar
$ cat p33.sh
#!/bin/sh

i=test123
number=`wc -l < $i`
count=1
while [ $count -le $number ]
do
tmp=`sed -n "$count,1p" $i`
...
1,754
Posted By ctsgnb
Instead of generating a file that regenerate the...
Instead of generating a file that regenerate the file, why don't you just generate a copy of the file ?

If you want to copy a directory with subtree, see
tar command as well as cp or scp command...
Showing results 1 to 7 of 7

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