![]() |
![]() |
|||
|
||||
|
|||||||
| Register | Forum Rules | FAQ | Search | Today's Posts | Mark Forums Read |
| Welcome Guest Visitor! Please Register, It's Free and Fun To Participate! | |
|
The EXTREME Overclocking Forums are a place for people to learn how to overclock and tweak their PC's components like the CPU, memory (RAM), or video card in order to gain the maximum performance out of their system. There are lots of discussions about new processors, graphics cards, cooling products, power supplies, cases, and so much more!
You are currently viewing our boards as a "guest" which gives you limited access to view most discussions. You need to register before you can post: click the register link to proceed. Before you register, please read the forum rules. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own pictures, and access many other special features. Registration is fast, simple, and absolutely free! To start viewing messages, select the forum that you want to visit from the selection below. After you have registered and read the forum rules, you can check out the FAQ for more information on using the forum. We hope you enjoy your stay here! Note To Spammers: We do not allow unsolicited advertising! Spam is usually reported & deleted within minutes of it being posted, so don't waste your time (or ours)! |
|
| Please Register to Post a Reply |
|
|
Thread Tools |
|
|
#1 | ||||
|
720BE's FTW
Senior Member
|
[Fixed] Nix Shell Scripting question
anyway, I have the following code to read a directory and create repositories and import dumps into those svn repos. When i run the script, everything runs ok, but i get the following error: ./importsvn.sh: line 9: <<<: command not found my code is as follows: Code:
#!/bin/sh
svnPath=/usr/bin/svnadmin
for f in `ls ./*.dmp`
do
length=`expr ${#f} - 6`
#echo $length
repName=${f:2:$length}
`$svnPath create /home/repositories/$repName`
`$svnPath load /home/repositories/$repName < $f`
done
if you have any suggestions, please let me know =] *EDIT* Found the answer: Code:
#!/bin/sh
svnPath=/usr/bin/svnadmin
for f in `ls ./*.dmp`;
do
repName=${f%%.dmp};
$svnPath create /home/repositories/$repName;
$svnPath load /home/repositories/$repName < $f;
done
Last edited by gundamxxg : 07-09-2012 at 11:29 AM. Reason: Self Answered |
||||
|
|
| Please Register to Post a Reply |
| Thread Tools | |
|
|