You can try the following
for i in *.dat ;do
echo $i
cat $i >> all_dihedrals.dat
done
Ase
On Aug 3, 2014, at 2:56 PM, Kshatresh Dutta Dubey <kshatresh.gmail.com> wrote:
> Dear Users,
>
> Sorry for asking a question which may not be appropriate for amber
> archive. I am following the amber advance tutorial 17 for umbrella
> sampling. When I am using the script :
> #!/bin/csh
> foreach i ( *.dat )
> echo $i
> cat $i >> all_dihedrals.dat
> end
>
> It is showing error as
> script-all-dihed: line 2: syntax error near unexpected token `('
> script-all-dihed: line 2: `foreach i ( *.dat )'
>
> Please help me to solve this issue, I have no much knowledge of shell
> scripting.
>
> Thanks in advance.
>
> Regards
> Kshatresh
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Sun Aug 03 2014 - 13:00:02 PDT