colon after while block ... still produces the same error
Thanks balajesuri, but even with the fix, I still got the same error.
What I found interesting was the command echoed from the 'run' statement. They aren't identical (aside from the file names).
script command
echoed command
It looks like the variable $match isn't being created? I'm just trying to shed some light on what might be the problem....
#!/usr/bin/perl
open (DATA, file.txt);
@array = <DATA>;
close (DATA);
open (DATA, ">$file.txt");
for (@array) {
s/text/replace text/;
push(@contents,$_);
}
seek(DATA, 0, 0);
print DATA (@contents);
close(DATA);
could someone please explain how this works. i've been... (3 Replies)
i am having a weird error on mac os x running some shell scripts. i am a complete newbie at this and this question concerns 2 scripts. one of which a friend of mine wrote (videochecker.sh) a couple weeks ago and it's been running fine on another machine.
then last week i wrote capture.sh and it... (2 Replies)
so in unix this command works works and shows me a list of directories
find . -name \*.xls -exec dirname {} \; | sort -u | > list.txt
but when i try running a perl script to run this command
my $query = 'find . -name \*.xls -exec dirname {} \; | sort -u | > list.txt';... (2 Replies)
Hello.
I would like to ask your help regarding the cp command. We are using a cp command to create a back-up copy of our file but to no avail. It's just not working. We already checked the file and directory permissions and all seems correct.
We have a script (ftp.script) which calls on... (1 Reply)
The following command works perfectly in Terminal, but not in Applescript. (Returns "unknown token" error for square brackets.)
(new to site. sorry.)
I have an Applescript that is designed to find and remove any square-bracketed text, including the square brackets.
I ran the following code from... (1 Reply)
Hi everyone
I have a problem with my script
If I try directly this command
/usr/bin/nice -n 19 mysqldump -u root --password="******" wiki_schneider -c | nice -n 19 gzip -9 > /point_de_montage/$(date '+%Y%m%d')-wiki-db.sql.gz
It works
But if I simply add this command in a script and... (8 Replies)
In the below perl executes if one file is processed perfect. However, when multiple files are processed in batch which is preferred I get the below error that I can not seem to fix it as the '' necessary for the command to execute, but seem to only work for one -arg option. Thank you :).
... (2 Replies)
I have a file with two line, one is header, the other actual value:
TYPCD|ETID2|ETID|LEG ID|PTYP|PTYP SUB|TRD STATUS|CXL REASON|CACT|CACTNM|ENCD|ENC
D NM|TRDR|ASDT|TRDT|MTDT|STDT|LS|SECID|SECID TYP|SECNM|PAR|STCC|MARKET PRICE|DIS
MARKET PRICE|MARKET PRICE CURRENCY|SRC OF SETTLEMENT... (2 Replies)
I wish to replace "\\n" with a single white space.
The below does the job on command-line:
$ echo '/fin/app/scripts\\n/fin/app/01/sql' | sed -e 's#\\\\n# #g';
/fin/app/scripts /fin/app/01/sql
However, when i have the same code to a shell script it is not able to get me the same output:... (8 Replies)
Discussion started by: mohtashims
8 Replies
LEARN ABOUT DEBIAN
bam
BAM(1) User Commands BAM(1)NAME
bam - fast and flexible build system
SYNOPSIS
bam [OPTION]... [VARIABLE=VALUE]... [TARGET]...
DESCRIPTION
Builds applications using the bam build system.
Execution:
-a abort on error
-c clean targets
-d build targets that is dependent given targets
--dry dry run, don't run any jobs
-j sets the number of threads to use (default: 0, disabled)
-s bam file to use (default: bam.lua)
Lua:
-l print local variables in backtrace
-t print backtrace when an error occurs
Output:
-r build progress report format (default: s) b = progress bar c = use ansi colors s = build steps
-v be verbose
Other:
-n don't use cache
-h, --help
prints this help
Debug:
--debug-nodes
prints all the nodes with dependencies
--debug-detail
prints all the nodes with dependencies and details
--debug-jobs
prints all the jobs that exist
--debug-dot
prints all nodes as a graphviz dot file
--debug-jobs-dot
prints all jobs as a graphviz dot file
--debug-trace-vm
prints a line for every instruction the vm makes
--debug-dump-int
prints the internals scripts to stdout
--debug-no-int
don't load internal scripts
bam by Magnus Auvinen (magnus.auvinen@gmail.com)
bam May 2011 BAM(1)