#!/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: "("
I have compiled both gocr and subtitleripper from slackbuilds.org and I am running into a problem with one of the scripts run from subtitleripper: pgm2txt.
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
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.
I am currently trying to write a bash script which helps me step through a directory and check for .jpeg or .jpg extensions on files.
I have an init script (im running Debian) to start serviio a DLNA server. When i go to start the service i get the following error. Any help would be appreciated. Please note: I'm VERY new to linux/bash/debian.
I get this error: Invalid Syntax: unexpected then on line 43, expected }
With this code:
#!
Hi,
When I tried compile an simple hello world program on ARM9 board by using Busybox 1.15.3, I am getting the error,
Syntax error: word unexpected (expecting ")")
"file busybox" output:: busybox: ELF 32-bit LSB executable, ARM, version 1, statically linked, for GNU/Linux 2.4.3, stripped
"file Hello" output:: hello: ELF 32-bit LSB executable, ARM, version 1 (SYSV)
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!"