Sponsored Content
Top Forums Shell Programming and Scripting read the text file and print the content character by character.. Post 302428442 by samupnl on Thursday 10th of June 2010 02:57:32 AM
Old 06-10-2010
Java read the text file and print the content character by character..

hello all
i request you to give the solution for the following problem..
I want read the text file.and print the contents character by character..like if the text file contains google means..i want to print
Code:
g
go
goo
goog
googl
google

like this Using unix Shell scripting...
without using awk and perl commands i need the scripts...
please help me
thanks

Last edited by Yogesh Sawant; 06-10-2010 at 04:13 AM.. Reason: added code tags
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

need to read 3° character from a text file

Hi, I need a script to read the n° character from a text file. eg: if the text file contains the line "123456" ,I nedd a command to display the number 4, as an example. I tried with awk and printf but it seems only works with words separated with spaces, but in this case I have only one word... (15 Replies)
Discussion started by: piltrafa
15 Replies

2. Shell Programming and Scripting

Can i read a file character by character

How to read character by character using awk (6 Replies)
Discussion started by: karnan
6 Replies

3. UNIX for Dummies Questions & Answers

read a variable character by character, substitute characters with something else

im having trouble doing this: i have a variable with 2 characters repeating e.g. aababbbaaaababaabbaabbba is there a way i can search the variable for a's and b's and then change a's to b's and b's to a's? im guessing its like getting the 1's compliment of the string im doing this in... (2 Replies)
Discussion started by: vipervenom25
2 Replies

4. Shell Programming and Scripting

read in a file character by character - replace any unknown ASCII characters with spa

Can someone help me to write a script / command to read in a file, character by character, replace any unknown ASCII characters with space. then write out the file to a new filename/ Thanks! (1 Reply)
Discussion started by: raghav525
1 Replies

5. Shell Programming and Scripting

Can I read a file character by character?

Hello all respected people, Can i read a file character by character without using sed,awk and perl commands. Thanks in advance. (4 Replies)
Discussion started by: murtaza
4 Replies

6. Shell Programming and Scripting

Deleting all characters from 350th character to 450th character from the log file

Hi All, I have a big log file i want to delete all characters (between 350th to 450th characters) starting at 350th character position to 450th character position. please advice or sample code. (6 Replies)
Discussion started by: rajeshorpu
6 Replies

7. Shell Programming and Scripting

How to read character by character in a file

Hi, How read character by character from a file . and i need replace '.' with null if it comes as a 5 character i am beginner ...please help me (1 Reply)
Discussion started by: kartheek
1 Replies

8. Shell Programming and Scripting

Read a text file and print the content..

hello all i request you to give the solution for the following problem.. I want read the text file.and print the contents character by character..like if the text file contains google means..i want to print g go goo goog googl google like this Using unix Shell scripting... ... (7 Replies)
Discussion started by: samupnl
7 Replies

9. 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

10. Shell Programming and Scripting

Read character by character in line in which space is also included

Hi friend, I have one file , and i want to read that file character by character. I need this script in ksh. while using read option with -n1 am getting error. while read -n1 c read has bad option And if i am using below script, then if in a line has space like this ( Pallvi mahajan)... (10 Replies)
Discussion started by: pallvi_mahajan
10 Replies
GOO(1)							      General Commands Manual							    GOO(1)

NAME
goo, g2c - generic object-orientator (programming language) SYNOPSIS
goo g2c DESCRIPTION
This manual page documents briefly the goo and g2c commands. goo and g2c interactively evaluate statements in GOO, a dynamic, type-based, object-oriented language in the same family as Dylan and Scheme. The language is designed to be simple, productive, powerful, extensible, dynamic, efficient, and real-time. goo and g2c support two evaluation modes, controlled by the environment variable GOO_EVAL_MODE; the two commands differ only in which mode is the default. In ast mode (short for "abstract syntax tree", and the default for goo), they directly interpret parsed goo expressions. In g2c mode (the default for g2c), they instead translate expressions into dynamically compiled C code. OPTIONS
None. USAGE
Typing goo or g2c at your shell will start up a goo read-eval-print loop, which accepts s-expressions and top-level commands commencing with a comma. The following is a list of available commands: ,quit Exit the program. ^C (control-C) Invoke a recursive read-eval-print loop. ,g2c-eval Change to dynamic compilation evaluation. ,ast-eval Change to ast evaluation. ,in ,name Change to module name. ENVIRONMENT
GOO_EVAL_MODE Determines evaluation mode, as documented in DESCRIPTION above. GOO_ROOT Installation root (/usr on Debian systems); files needed at runtime can be found under ${GOO_ROOT}/lib/goo. SEE ALSO
The full GOO reference manual: /usr/share/doc/goo/goo.pdf.gz or /usr/share/doc/goo/manual/goomanual.html . AUTHOR
goo was written by Jonathan Bachrach. This manual page was written by Aaron M. Ucko <ucko@debian.org>, for the Debian project based on Jonathan's documentation (but may be used by others). 2005-08-04 GOO(1)
All times are GMT -4. The time now is 08:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy