#!/usr/bin/perl
use strict;
use warnings;
my $file;
my @files;
my $parse;
my @files = <*>;
foreach $file(@files)
chomp ($file);
{
$parse = system qq(paste <(cut -f1,2,13 $file) <(cut -f12 $file));
}
"my" variable @files masks earlier declaration in same scope at Rast_seq.pl line 11.
sh: 1: Syntax error: "(" unexpected
sh: 1: Syntax error: "(" unexpected
sh: 1: Syntax error: "("
Hi i have just modified my stock rom and i have just tried to install it using CWM recovery and i keep getting the same error all the time.
Hi I have coded this bash script to count the number of tabs in file.but when i run the script i am getting this error. what
is the mistake i ve done?
line 5: syntax error: "(" unexpected
Code:-
#!/bin/sh
#
FILE='unit-1-slide.txt'
OUTPUTFILE='output-for'- $FILE'
COUNT=$(awk'{print gsub(/\t/,"")}' $FILE)
OUTPUT_PATH='/home/user/Desktop'
echo $COUNT >> $OUTPUTFILE
echo "Done!"
I have the following cronjob:
2 15 * * * mysqldump -u user -ppass dbname | gzip -9 -c > /var/www/backup/dump-$(date +%Y-%m-%d).sql.gz
but it produces following error:
/bin/sh: -c: line 0: unexpected EOF while looking for matching ')'
/bin/sh: -c: line 1: syntax error: unexpected end of file
I tried ommiting -c but no luck.
Hi everyone, I'm really new in shell scripting and having trouble resolving this error.
Can someone please tell me why I'm getting these errors?
Error Message:
./test.sh: line 50: unexpected EOF while looking for matching `''
./test.sh: line 53: syntax error: unexpected end of file
Code:
#!/bin/sh
counter=0
logloc=/home/songja/ServerLogs
backup=/home/songja/test
## Reads the location of
Hi,
I am getting error while running the script. "syntax error: unexpected end of file"
if i do cat i cant see the content of the script also it is showing as
HTML Code:
cat test.sh
doner /home/master/* /home/Priya/$i| while read i j
The original script is
Code:
paste /home/names.txt /home/ip.txt | while read i j
do
mkdir $i
cp -r /home/master/* /home/test/$i
done
Hi,
We have installed linux6(RHEL) OS and installed datastage application on that.
First time installation worked fine and our all services related to datastage was up and running.
When we stopped the datastage and restarted its giving below error while restart:-
./uv -admin -start
DataStage Engine 8.7.0.0 instance "ade" has been brought up.
I write the line below in order to verify if first or second fields of list of numbers are equal to 146
I want to run the line from tcsh shell with one line as bash shell
please advice what the problem here in the syntax ?
echo $numbers
146 146 0 16 16 10 42 12 10 32 32 3 2 32 26
tcsh
bash -c 'for i in 1 2; do if [ 146 = `echo $numbers | cut -f$i -d' ' ` ]; then echo "NUM is OK "; fi done'
How can i determine what exactly the problem with my bash?
from time to time i run the script and get the following error:
download.sh: line 254: syntax error near unexpected token `}'
download.sh: line 254: `}'
but there's no '}' on line 254