Re: [SLE] rcs and shell scripting
Sam Carleton <activex1@one.net> wrote:
Ok, folks I have used another verions of rcs in the past, it has a switch -F <filename>. The <filename> would be a file that contains a list of files to check in/out. The version of rcs that comes with Linux doesn't have this option. How do I simulate this?
Sorry, can't help with that one.
Does anyone have an idea on how I can take a file that has one file per line and put them all onto the back end of a commend line? If the file is:
/-------------Begine line1 line2 line3 /-------------End
I want it to end up like this
ci line1 line2 line3
How can I do this?
cat filename | xargs ci or if there are just a few files listed you can use ci `cat filename` Be sure to use the correct type of quotes. Regards Ole -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
On Thu, 3 Feb 2000, Ole Kofoed Hansen wrote:
Sam Carleton <activex1@one.net> wrote:
Ok, folks I have used another verions of rcs in the past, it has a switch -F <filename>. The <filename> would be a file that contains a list of files to check in/out. The version of rcs that comes with Linux doesn't have this option. How do I simulate this?
Sorry, can't help with that one.
Does anyone have an idea on how I can take a file that has one file per line and put them all onto the back end of a commend line? If the file is:
/-------------Begine line1 line2 line3 /-------------End
I want it to end up like this
ci line1 line2 line3
How can I do this?
cat filename | xargs ci
or if there are just a few files listed you can use
ci `cat filename`
You might also want to include the '-r' option to prevent xargs from running ci if the filename list happened to be empty. Jim -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (2)
-
jcunning@cts.com
-
k01164@ko.sdu.dk