Sponsored Content
Full Discussion: Read line and print output
Top Forums UNIX for Beginners Questions & Answers Read line and print output Post 303039607 by vgersh99 on Thursday 10th of October 2019 09:23:56 AM
Old 10-10-2019
As always, where exactly are you stuck with this?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How do i print this output all on the same line?

I have this simple script which gives info on HBA ports. How do i get it all to print on the same line? !#/bin/ksh TMP_INFOFILE=/tmp/tmpfile if ; then rm -f $TMP_INFOFILE touch $TMP_INFOFILE fi PORT_INFOFILE=/tmp/aa if ; then rm -f $PORT_INFOFILE ... (1 Reply)
Discussion started by: rcon1
1 Replies

2. UNIX for Dummies Questions & Answers

format output from while read line

I have an output that I get from while read, I want to display it as the following, please help. Original output from while read line loop: This is my client=1 client version=2.3.4 OS version=4.5 This is my client=2 client version=1.5.6 OS version=6.7 I want it to look like this with... (7 Replies)
Discussion started by: dala
7 Replies

3. Shell Programming and Scripting

print out a line from a output file

I am trying to have a script ping all the clients then output it to a file so I know which clients are off then have the next script pull the ones that are online and reboot them. This is what I am running with right now. If there is something KISS then by all means please let me know. ... (3 Replies)
Discussion started by: deaconf19
3 Replies

4. Shell Programming and Scripting

read file line by line print column wise

I have a .csv file which is seperated with (;) inputfile --------- ZZZZ;AAAA;BBB;CCCC;DDD;EEE; YYYY;BBBB;CCC;DDDD;EEE;FFF; ... ... reading file line by line till end of file. while reading each line output format should be . i need to print only specific columns let say 5th... (2 Replies)
Discussion started by: rocking77
2 Replies

5. Shell Programming and Scripting

Print output and read input on same line

How do I print output and read input on the same line in ksh? echo Hello, what is your name? read name (1 Reply)
Discussion started by: robin_simple
1 Replies

6. Shell Programming and Scripting

Read from text file;format and print output

Hi Following is the assumed input... Symmetrix ID : 12345 Originator Port wwn : 123456789 User-generated Name : 123456789/123456789 Sym Dev Dir:P LUN ------ ----- ----------------------- ---- --- ---- ---- ---- ------- 1234 ... (4 Replies)
Discussion started by: maddy.san
4 Replies

7. Programming

Read text from file and print each character in separate line

performing this code to read from file and print each character in separate line works well with ASCII encoded text void preprocess_file (FILE *fp) { int cc; for (;;) { cc = getc (fp); if (cc == EOF) break; printf ("%c\n", cc); } } int main(int... (1 Reply)
Discussion started by: khaled79
1 Replies

8. Linux

Print line 1 if line 3 matches of the output

Hi I want to extend following command so that on the basis of "Branch: ****" on the third line I can grep and print name of the file on the first line. cat .labellog.emd | grep DA2458A7962276A7E040E50A0DC06459 | cut -d " " -f2 | grep -v branch_name | xargs -I file <command to describe> file ... (1 Reply)
Discussion started by: ezee
1 Replies

9. UNIX for Beginners Questions & Answers

Output to file print as single line, not separate line

example of problem: when I echo "$e" >> /home/cogiz/file.txt result prints to file as:AA BB CC I need it to save to file as this:AA BB CC I know it's probably something really simple but any help would be greatly appreciated. Thank You. Cogiz (7 Replies)
Discussion started by: cogiz
7 Replies

10. Shell Programming and Scripting

How to read the output of a command line by line and pass it as a variable?

Hi, I have some 2000 names in a table like below. Java Oracle/SQL ANSI SQL SQL,DWH,DB DB&Java And by using for loop in my code i am able to get a single word but if there is any special character or space then it is considering as a next line. I have to execute the below queries in... (10 Replies)
Discussion started by: Samah
10 Replies
Tumiki Fighters(6)														Tumiki Fighters(6)

NAME
tumiki-fighters - sticky 2D shooter DESCRIPTION
OPTIONS
These options are available: -brightness n Set the brightness of the screen.(n = 0 - 100, default = 100) -res x y Set the screen resolution to (x, y). -nosound Stop the sound. -window Launch the game in a window. -fullscreen Launch the game in fullscreen. -reverse Reverse the shot key and the slow key. USAGE
How to play: Movement Arrow / Num / [WASD] / Joystick Shot [Z][L-Ctrl][.] / Trigger 1, 4, 5, 8 Slow/Pull in [X][L-Alt][L-Shift][/] / Trigger 2, 3, 6, 7 Pause [P] At the title screen, push a shot key to start the game. Control your ship and destroy enemies. You can catch the enemy's broken piece. Pieces are stuck to your ship and counterattack to ene- mies. You can earn the bonus score by keeping many pieces stuck. Stuck pieces are destroyed when they touch a enemy's bullet. While holding a slow key, the ship becomes slow and the ship direction is fixed. Stuck pieces are pulled in and you can prevent a crash of them, but the bonus score reduces to one fifth. Enemy's pieces are not stuck while holding this key. If you stick many pieces, enemies become more offensive and tend to fire more bullets. The ship is destroyed when it is hit by a bullet. The body of the enemy has no collision damage. The ship extends at 200,000 and every 500,000 points. SEE ALSO
You can find more about the game on its homepage: http://www.asahi-net.or.jp/~cs8k-cyu/windows/tf_e.html AUTHOR
This game has been written by Kenta Cho <cs8k-cyu@asahi-net.or.jp> Tumiki Fighters(6)
All times are GMT -4. The time now is 06:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy