I'm trying to install RVM on 12.10 by running this command in terminal
$ curl -L get.rvm.io | bash -s stable
and I got this error
bash: line 1: html: No such file or directory
bash: line 2: syntax error near unexpected token
bash: line 2: 400 Bad Request
Here's the link to the script: https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer
Any help?
#!/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: "("
When I log in, appears the following error:
-bash: /etc/profile: line 1: syntax error near unexpected token ('
Inside the file there is the next code:
n# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))\n
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).\n\nif
[ -d /etc/profile.d ]; then\nfor i in /etc/profile.d/*.sh; do\nif [ -r $i ];
then\n.
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 am getting syntax error near unexpected token done while executing my shell script:
while read filename
do
echo "$filename"
if [ -s $filename ]; then
tail -10 $filename | grep `date '+%Y-%m-%d'` >> $lastlines1
echo "- Next Error File - " >> $lastlines1
done
else
echo " no errrors"
fi
Any ideas, where am I going wrong?
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'
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 am trying to write a bash script that calls upon parameters in an array that are stored in a config file, the path of which is stored in /etc/environment and ~/.bash_login as VMS. The config file is sourced using the code below.
if [ -e $VMS ]
then
.
When I tried to run dpkg, I faced this problem:
/usr/bin/dpkg: line 1: syntax error near unexpected token `newline'
What is it and how to fix this?
p.s When I entered folder /usr/bin, I saw that dpkg is a folder not an executable file like dpkg-deb,etc.