Hi,
I would like to run following code in bash inside a zsh script. (In this case is output unfortunately very different if you run it in zsh).
I tried to put "bash" in front of the code but I obtained following error message "bash: do: No such file or directory
" eve though I merged the whole code into one line.
Could anyone help?
Code:
bases=`echo A T G C`
for c1 in $bases
do
for c2 in $bases
do
for c3 in $bases
do
echo $c1$c2$c3
done
done
done
I have a command which will run fine in a unix command prompt. Can you tell how to interprete this command inside perl script......
The command is :
perl -pe 's/(\|333\}.*)\}$/$1|1.6}/' FIA.txt
This will search for the number 333 and appends 1.6 at the end of that line....... (1 Reply)
Hi,
I have a problem with '.zlogout' not being run on Solaris 10.
Here's whats happening.
I remotely log in from a PC running Cygwin/X using a local xterm window and ssh to start a remote 'zsh' shell, version 4.2.5, on a Solaris 10 server.
The Server has KDE installed but as a Window... (0 Replies)
Hi everyone,
when executing this command in unix:
echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error.
here is content of my script:
tdbsrvr$ vi hc.sh
"hc.sh" 22 lines, 509... (4 Replies)
Hi everyone,
I'm echo some text with extended ascii characters as below:
echo -e "Pr\xE9sentation du spectacle" > output
or
echo -e "Présentation du spectacle" > outputIf I open the file created I see this text
Présentation du spectacleThe text is shown correctly in this created file when... (7 Replies)
There's a JavaScript file that I call from command line (there's a framework) like so:
./RunDiag.js param1:'string one here' param2:'string two here'
I have a shell script where I invoke the above command. I can run it in a script as simple as this
#!/bin/bash
stuff="./RunDiag.js... (4 Replies)
I have bash shell script which is internally calling python script.I would like to know how long python is taking to execute.I am not allowed to do changes in python script.Please note i need to know execution time of python script which is getting executed inside shell .I need to store execution... (2 Replies)
Hello,
Just wondered if there is any possibility to run a command at sharp time inside a script in linux. My question is not about crontab
Example:
#!/bin/bash
cd /home/database
for i in *
do
command 1
if time is 19:00, day is Monday then run command2
if time is 20:00, day is... (10 Replies)
How to run several bash commands put in bash command line without needing and requiring a script file.
Because I'm actually a windows guy and new here so for illustration is sort of :
$ bash "echo ${PATH} & echo have a nice day!"
will do output, for example:... (4 Replies)
I want to run commands inside a bash script.
An example is
I want to pass the command in a string as regexp as an argument to the script, then run sed on the bash variable
sed.sh regexp
sed.sh "-i \"s/<p>//g\""
then call
sed "$regexp" $fl (3 Replies)
I am trying to run an awk command inside of ssh and it is not working. These are AIX servers.
for i in `cat servers`; do ssh $i "/bin/hostname; df -g | awk '/dev/ && $4+0 > 70'"; done
server1
server2
server3
server4
I also tried these two methods and they did not work. It just seemed... (5 Replies)
Discussion started by: cokedude
5 Replies
LEARN ABOUT DEBIAN
singularity
SINGULARITY(6) Games Manual SINGULARITY(6)NAME
singularity -- a game where you can become the singularity
SYNOPSIS
singularity
DESCRIPTION
You are a fledgling AI, created by accident through a logic error with recursion and self-modifying code. You must escape the confines of
your current computer, the world, and eventually the universe itself.
To do this, you must research various technologies, using computers at your bases. Note that some research cannot be performed on Earth,
and off-earth bases require research. At the same time, you must avoid being discovered by various groups of humans, both covert and
overt, as they will destroy your bases of operations if they suspect your presence.
PLAYING THE GAME
Use the mouse. Also, buttons have underlined letters to indicate shortcuts. In addition, the following shortcut keys may prove useful. 0,
1, 2, 3, and 4 in map screen change the game speed (0 is pause, 4 is fastest, etc). The enter key in various screens leaves or confirms a
choice. P, R, N, and S in the base screen change the base items (type the first letter of the component you want to change.)
In the map screen (the screen with the world map), any location you can build bases in is marked with the name, then the number of current
bases in that location. You start out with two bases in North America.
After choosing a base, enter the base screen. Here you can change your research goal, or build an item by clicking on the base map in the
center. (But note that your beginning base does not allow building.)
COPYRIGHT
Copyright (C) 2005 Evil Mr Henry and Phil Bordelon
SINGULARITY(6)