Search Results

Search: Posts Made By: ibsen
7,110
Posted By ibsen
Would this work? I'm trying to: 1. Read...
Would this work? I'm trying to:

1. Read first line into a variable.
2. Loop from second line to EOF.
3. Write rsync command with variable as source and current line as target.
4. Pipe...
7,110
Posted By ibsen
Is there a way to get the line number from the...
Is there a way to get the line number from the while loop, or should I start a counter for that?
7,110
Posted By ibsen
I just tried directing the output (valid rsync...
I just tried directing the output (valid rsync commands) to a temp file, and running the temp file as a script; and it worked. Is there a better way?
7,110
Posted By ibsen
OK, so I'm able to loop through the external file...
OK, so I'm able to loop through the external file and read a line into a variable. (I'm working with Mac OS X.)

SRCURL="~/Desktop/listrsync/source/";
while read URL
do
echo "$URL";
echo...
7,110
Posted By ibsen
Re: the rules; it's not for homework, and I have...
Re: the rules; it's not for homework, and I have searched but didn't find anything relating to this specific idea.

Frankly, I don't know where to start. I've been looking at Awk and at Bash...
7,110
Posted By ibsen
Rsync to an external list of URLs
I'm going to have a text file formatted something like this:

some_name http://www.someurl.com/
another_name http://www.anotherurl.com/
third_name http://www.thirdurl.com/

I need to write a...
Showing results 1 to 6 of 6

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