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
like this Using unix Shell scripting...
without using awk i need the scripts...
please help me
thanks
Moderator's Comments:
Use code tags please, ty.
Last edited by samupnl; 06-10-2010 at 01:39 AM..
Reason: code tags
help me pls.. :(
i want to read a mapping file.
Below is the content of my mapping file.
6221,189,SMSC1,OMC1,WAP1
6223,188,SMSC2,OMC2,WAP2
so when my program running
msisdn="622130302310"
while not EOF
if substring($msisdn,1,4) == "6221" -- > "6221" read from the file
then
echo... (0 Replies)
i have one file
abhi.txt
its contents are
home8/mc09ats/UnixCw/backup/file1
home8/mc09ats/file2
i want to read this content of file using while loop..
in this i want to seperate the content as follows
path=home8/mc09ats/UnixCw/backup
file=file1
echo path
echo file
can you... (1 Reply)
Hi -
I have a file containing data like :-
cn=tommy,cn=users,c=uk
passwordexpirydate=20100530130623z
cn=jane,cn=users,c=uk
passwordexpirydate=20100423140734z
cn=michael,cn=users,c=uk
passwordexpirydate=20100331020044z
I want to end up with a file that looks like:-... (6 Replies)
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...
without using... (1 Reply)
Hi,
I am working on one script..I am having files in the below format
file 1 (each line is separated with : delimeter)
SPLASH:SPLASH:SVN
CIB/MCH:MCH:SVN
Now I want from file 1 that most left part of the first line will store in... (6 Replies)
Hi, as the title, I have an array @f_lines with gene information in it. How can I put the content of @f_lines into a file so that I can read it?
I tried this:
open(OUTPUT, "file"); # put gene information in this file;
@f_lines = ("gene1", "gene2", "gene3"...); # gene information;
print... (3 Replies)
Hello everyone,
I work under Ubuntu 11.10 (c-shell)
I need a script to create a new text file whose content is the text of another text files that are in the directory $DIRMAIL at this moment.
I will show you an example:
- On the one hand, there is a directory $DIRMAIL where there are... (1 Reply)
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)
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)
hi all,
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
file1.txt
abc12345
def12345
ghi54321
...
file2.txt
abc1,text1,texta
abc,text2,textb
def123,text3,textc
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies
LEARN ABOUT DEBIAN
goo
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)