I have file names that map to directores.
For example.
test ---> /to/path/test/program.c
I have a line that formats the output of sed into this currently
test0
test1
test3
All unique directories, I now need to add leading path and copy their respective c files. Is there a way to stagnate the output of sed while i carry about ther...
Given:
myvar=Hello
echo $myvar -> Shows Hello (fine so far)
echo $myvar#world -> shows Hello#world (why?? I thought it would complain that here is no such variable calld myvar#world
echo ${myvar#world} -> shows just Hello (again, why??)
Thanks in advance
...
Hi, I tried the script below to create a timestamp directory in one of my drives, for some reason is giving me a syntax error on the last string where it create the directory. See below.
:: Code begins....
pause
W:
pause
cd W:\VL2000_AMF\AMF_Archive
pause
for /F "tokens=1-4 delims=. " %%i in ('date /t') do (
set Day=%%i
set Month=%%j
se...
I want to group textframes in my InDesign CS3 vb.net script. It worked for InDesign 2.0 but it does not work with InDesign CS3. Here is my code:
Dim myDoc As InDesign.Document = Nothing
Dim myGroup As InDesign.Group = Nothing
Dim myObjectList(2)
myObjectList.SetValue(myOuterTextFrame, 0)
myObjectList.SetValue(myInnerTextFrame, 1)
myObj...
Due to pressure from outside our group, we have to port over one hundred Perl scripts from Sparc to x86. This means changing dozens of shebang lines from #!/home/Perl/bin/perl -w to something else, which is a real pain. What is good way to do this (I can't find anything on Lycos)?
Also what happens when we're forced to move from x86 to...
Given a text file of unknown length, how can I read, for example all but the first 2 lines of the file? I know tail will give me the last N lines, but I don't know what N is ahead of time.
So for a file
AAAA
BBBB
CCCC
DDDD
EEEE
I want
CCCC
DDDD
EEEE
And for a file
AAAA
BBBB
CCCC
I'd get just
CCCC
...
Hi,
I'm trying to use Eclipse CDT's headlessbuild feature for integrating Eclipse with TeamCity. I use a command line call to build my projects as descriped in this question. If there is a compilation error, a message box pops up saying "Java was started but returned exit code=1". I'd rather not have this message but get the return code ...
I need to write a shell script to check the existence of certain CVS tag in the repository, and do different things depending on the result. So hence is my question: How to check for CVS tag existence and parse the result in shell script?
...
Hello, I need to extract data from a Java web application. To be specific I am looking to extract real time stock data from yahoo market tracker. can anyone please suggest any method?
...
We have an IDE for machine automation that allows its users to develop solutions by connecting objects and components visually. They can also write "plugins" using c++ and c#. The IDE is written using .NET. Its users often are not founded in traditional software development and programming but more in the direction of technical/electrica...
I'm interested in the most elegant way of creating a solution using all T-SQL that will allow me to target any view that is currently in the database using the WITH SCHEMABINDING option and dropping it then recreating it. We need to assume here that we don't have access to the original DDL scripts so the Views must be recreated only from...
I've been focusing on Clojure recently as a possible functional language to do systems scripting. Until, it dawned on me that having the JVM underneath means I'm limited to Java's capability.
So, how do I create a symlink? Or a hard link? I mean without (sh "ln" ...).
...
I want to run a script once day (and only on weekends), however, I cannot use cron job for that.
I was thinking about having an infinite while loop, sleep for 24 hours, check if it is a weekend, and if so execute the script.
What it's a good solution under bash on linux?
my current implementation:
#! /bin/bash
while [ true ]; do
...
I have a log file with format
id operation
id success message
The second id is same as the first, but if only the the operation is successful. How can I get these two lines from the log to a new file?
...
In SQL Server Management Studio, there is an option to set the default database path for a given instance:
This works. When I say
CREATE DATABASE test
it gets created in the path I specify, E:\data. Great.
But how do I get this path in T-SQL (for use in setup scripts)?
Contrary to what many pages say, there is no registry key (...
I've just started wrapping my head around vim+python scripts (having no experience with native vim scripts).
How can I open a new window to contain the stdout from a background process?
Currently, after reading some :help python, the only option I see is something like:
cmd = ":bel new"
vim.command(cmd)
...
I'm looking at a bit of script and I'm not sure what the "//" does.
$ResultsFolder = "./" . "Results";
$CompanyFolder = $ResultsFolder."//".$CompanyName;
...
I want to delete the text present in the Java Edit box and want to add a new Text into that feild.
How can i perform this task in QTP (Scripting)?
...
Hi, I'm trying to setup PHP & SQLite on my mac with by following this page: http://developer.apple.com/mac/articles/internet/phpeasyway.html. The code posted on the site is supposed to be run in a command script but I don't know how to make that happen. I've tried making a bash script and an applescript but both of those give errors. Any...
I'm fairly new to Perl and was wondering what the best practices regarding subroutines are with Perl. Can a subroutine be too big?
I'm working on a script right now, and it might need to call another script. Should I just integrate the old script into the new one in the form of a subroutine? I need to pass one argument to the script and...