I have a data file contain the following information:
1
2
3
4
5
10
11
30
90
300
9
29
and on and on
I need to create a program with give me the following data format:
Jon
A (2 Replies)
Hi all,
I don't know how to redirect a variable in this case:
while true
do
./ready_data
...
done
ready_data should read a file looking for an ID, if this doesn't exist then add the last ID seen into the first line.
When ID exists there is no problem, but when ID doesn't... (0 Replies)
I have a program R installed on Ubuntu under /usr/bin/R. I also have a different version installed under /home/user/R. I would like to invoke the locally installed program temporarily. How can I do this automatically by running a script and then switching to the default program?
thanks,
SM (2 Replies)
I am using a very simple script (MUS) to process some files where the input file for the binary application I am running has to be named infile. So I have this:
#!/bin/bash
for i in {1..n}
do
mv block${i} infile
done
./dnadist <<EOF
D
Y
EOF
However, I want to use dnadist inside the... (3 Replies)
Hi, I was hoping for help with a for loop to run a program (vina) repeatedly using all the files in a folder as input. Currently my code looks like this:
#!/bin/bash
FILES=/home/afalk/Desktop/battest/*.pdbqt
for f in $FILES do
vina --config /home/afalk/Desktop/A.txt --ligand "$f".pdbqt
done... (5 Replies)
Hello,
So I have approximately 300 files of raw data (.txt) files that I am using to perform statistical analysis. I have been able to construct a Fortran program that is able to perform my statistical analysis on a file by file basis.
However, I now want to be able to loop program through... (19 Replies)
Hi, I have lost a lot of hours by looking for answer but without results.. My problem is that:
I use Debian GNU/Linux and I want to configure cron in order to run rtorrent every day between 24.00 and 09.00. That part I have achieved, but I couldn't forced cron to make it visible on any of my... (10 Replies)
hi all,
is there a way to run a script upon invoking an application . for eg if i click on mozilla i want a script to run , before runniing mozilla , maybe ask a password or something only then open mozilla (2 Replies)
Discussion started by: mithun1!
2 Replies
LEARN ABOUT V7
savetextmode
savetextmode(1) Svgalib User Manual savetextmode(1)NAME
savetextmode, textmode - save or restore the complete SVGA status for textmode.
SYNOPSIS
savetextmode
textmode
DESCRIPTION
These are simple scripts to save the SVGA register state when in textmode to the files /etc/vga/fontdata and /etc/vga/textregs
($HOME/.vga/fontdata and $HOME/.vga/textregs if directory /etc/vga is not writeable) or to restore it from these files.
The actual utilities used are restorefont(1), restoretextmode(1), and restorepalette(1).
The purpose of these scripts program is usually to recover from a crashed console due to an svgalib, Xfree or other program bug.
You do this by being a smart guy and running savetextmode right after booting of your machine, prior to any problems. Then, in case the
SVGA state is hosed and you sit in front of a blank or useless console, change VC (maybe login) to get to a shell. Or exist the currently
running program with <Ctrl>-C, <Ctrl>-<Alt>-<Backspace>, or whatever applies. Once you got a shell, run textmode and it will hopefully ren-
der your console useable again.
To make it clear: You do all this while not seeing anything on your console screen, you enter this information blindly or after logging in
from a network. Also, if the keyboard is left in raw mode, nothing can really help you as you cannot enter anything which a shell will
understand.
FILES
/etc/vga/fontdata or $HOME/.vga/fontdata
/etc/vga/textregs or $HOME/.vga/textregs
SEE ALSO svgalib(7), vgagl(7), libvga.config(5), dumpreg(1), convfont(1), fix132x43(1), restorefont(1), restoretextmode(1), restorepalette(1),
runx(1), setmclk(1),
AUTHOR
This manual page was edited by Michael Weller <eowmob@exp-math.uni-essen.de>. The exact source of the referenced utility as well as of the
original documentation is unknown.
It is very likely that both are at least to some extent are due to Harm Hanemaayer <H.Hanemaayer@inter.nl.net>.
Occasionally this might be wrong. I hereby asked to be excused by the original author and will happily accept any additions or corrections
to this first version of the svgalib manual.
Svgalib (>= 1.2.11) 2 Aug 1997 savetextmode(1)