10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
My file (the output of an experiment) starts off looking like this,
_____________________________________________________________
Subjects incorporated to date: 001
Data file started on machine PKSHS260-05CP
**********************************************************************
Subject 1,... (9 Replies)
Discussion started by: samonl
9 Replies
2. Shell Programming and Scripting
Dear All,
fileName: therm.txt
nc3h7o2h 7/27/98 thermc 3h 8o 2 0g 300.000 5000.000 1390.000 41
1.47017550e+01 1.71731699e-02-5.91205329e-06 9.21842570e-10-5.36438880e-14 2
-2.99988556e+04-4.93387892e+01 2.34710908e+00 4.34517484e-02-2.65357553e-05 3
... (7 Replies)
Discussion started by: linuxUser_
7 Replies
3. UNIX for Dummies Questions & Answers
Help,
I have a text file which looks like
disco 5674536
3456 jambo
disco 453678
4578 jambo
I would like to have an output which looks like below
disco 3456 disco 4578 (4 Replies)
Discussion started by: Indra2011
4 Replies
4. Shell Programming and Scripting
HI
I am trying to create a bash script to print whatever i type in
It has to have these below to define the size of the label and what size to print the text
N
q609
A100,10,0,5,2,2,N," "
P1
It has to be sent to below
> /dev/usblp0
So what it has to be is
Written... (12 Replies)
Discussion started by: bganse
12 Replies
5. Programming
#include <iostream>
int main() {
int x=0;
int y=1000;
while(x<1000) {
x++, y--;
system("clear");
printf("\n%d\n%d", x,y);
fflush(stdout);
}
return 0;
}
Without clearing the screen every time, how can i print 'x' and 'y' in the same spot? (2 Replies)
Discussion started by: cbreiny
2 Replies
6. UNIX for Dummies Questions & Answers
Hello all. I have a problem that I need help solving.
I would like to convert the following file:
human pool1_12 10e-02 45 67
human pool1_1899 10e-01 45 29
human pool1_1829 10e-01 43 26
horse pool1_343 10e-20 65 191
horse pool1_454 10e-09 44 43... (5 Replies)
Discussion started by: viralnerd
5 Replies
7. Shell Programming and Scripting
Hello friends,
Only very recently i started learning sed command...an i found that sed is faster in finding the patterns than some of my scripts that uses grep to check the patten inside a file using line by line search method which is time consuming.
The below script... (4 Replies)
Discussion started by: frozensmilz
4 Replies
8. Shell Programming and Scripting
Hello,
If anyone could help me out with this, it would be greatly appreciated. I am trying to dynamically create files and print to them.
Here is the code I have to so far. thanks.
if (n < 5000 )
{
# do nothing
}
else
{
n = 0;
filenum++;
# out = ("out" filenum);
}
... (1 Reply)
Discussion started by: Laud12345
1 Replies
9. Shell Programming and Scripting
Hi, I'm trying to get awk to print every line ending with a colon along with the next line. I have a file like:
Blah Blah a bunch of words, the money things are as follows:
Spokane 340,087, 000 3.24500% January 23, 2008
does anyone have any advice on this matter? I'm a bit... (6 Replies)
Discussion started by: AndyA
6 Replies
10. Shell Programming and Scripting
I've scoured the forum and found similar problems but I can't seem to adapt them to help me with my cause.
This is a two-part question.
I have a multi line file generated by ps | -ef
I need to print out a certain type of pattern. The pattern is part static and part dynamic.
It is a... (3 Replies)
Discussion started by: FK_Daemon
3 Replies