Sponsored Content
Top Forums Shell Programming and Scripting Need to Output result to a non-delimitted file Post 302182602 by matrixmadhan on Monday 7th of April 2008 04:51:42 AM
Old 04-07-2008
non-delimited file ?

do you want to remove the delimiters ?

Code:
sed 's/ //g' input > output

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

any possible to run sql result and output to file

Hi, I search all post...and no soluation about..if i would like to run a sql statement and output the result to txt file. for example, i usually run "sql" to logon the database and run select statement. Then I need to copy the output into the result.txt. Can I run the script to do this... (7 Replies)
Discussion started by: happyv
7 Replies

2. Shell Programming and Scripting

delimitted file to fixed length file

Hi, Iam new to unix. I have a variable length file seperated by delmitter "~", I need to change it to fixed length file including space instead of delimitter. To be clear..... Input file: Row-id name 123~name1 124~name2 125~name3 The above input file is a variable length file... (2 Replies)
Discussion started by: manneni prakash
2 Replies

3. Shell Programming and Scripting

Read multiple log files and create output file and put the result

OS : Linux 2.6.9-67 - Red Hat Enterprise Linux ES release 4 Looking for a script that reads the following log files that gets generated everynight between 2 - 5am Master_App_20090717.log Master_App1_20090717.log Master_App2_20090717.log Master_App3_20090717.log... (2 Replies)
Discussion started by: aavam
2 Replies

4. Shell Programming and Scripting

Way to save output result of a program into another new file...

Does anybody know any alternative way to save output result of a program into another new file? I got try the command below: program_used input_file > new_output_file program_used input_file >> new_output_file Unfortunately, both the ">" and ">>" is not work at this case to save the output... (6 Replies)
Discussion started by: patrick87
6 Replies

5. UNIX for Advanced & Expert Users

Output the SQL Query result to a File

Hello Guys, This message is somewhat relates with last thread. But I need to re-write thing. I start over a little. I am stuck now and need your help. Here is my script- #! /bin/ksh export ORACLE_HOME=/opt/oracle/app/oracle/product/9.2 /opt/oracle/app/oracle/product/9.2/bin/sqlplus -s... (5 Replies)
Discussion started by: thepurple
5 Replies

6. Shell Programming and Scripting

Write result to output file

Good morning everybody, Beeing an absolute newbie in shell scripting I would like to look for some help here. I would like to read an external text file and format the data and write it to an output file. What I was trying to do was to display the result (this worked). But now I... (1 Reply)
Discussion started by: bluejean1976
1 Replies

7. Shell Programming and Scripting

How to output thre result to a text file?

Dear All I have a script file like the following: ..... ..... Variable_1 = 888 Variable_2 = 999 ..... MyExternalProgram Myfile ..... The line MyExternalProgram Myfile will generate some number, Say 777 Now I hope I can output the result of above codes to a text file,... (2 Replies)
Discussion started by: littlewenwen
2 Replies

8. Shell Programming and Scripting

Output block of lines in a file based on grep result

Hi I would appreciate your help with this. I have a output file from a command. It is broken based on initial of the users. Exmaple of iitials MN & SS. Under each section there is information pertaining to the user however each section can have different number of lines. MY challenge is to ... (5 Replies)
Discussion started by: mnassiri
5 Replies

9. Shell Programming and Scripting

How to list files names and sizes in a directory and output result to the file?

Hi , I'm trying to list the files and output is written to a file. But when I execute the command , the output file is being listed. How to exclude it ? /tmp file1.txt file2.txt ls -ltr |grep -v '-' | awk print {$9, $5} > output.txt cat output.txt file1.txt file2.txt output.txt (8 Replies)
Discussion started by: etldeveloper
8 Replies

10. Shell Programming and Scripting

Grep output to file result not as expected

Hi Gurus, I run command grep ABC file1 > file2 against below file. I got all ABC_xxx in one line in file2. I expect to get multiple lines in file2. If I print result in screen, the result is expected. thanks in advance My os is SunOS 5.10 Generic_150400-64 sun4v sparc sun4v ABC_123 XXXXX... (2 Replies)
Discussion started by: green_k
2 Replies
ns_adp_exception(3aolserver)				    AOLserver Built-In Commands 			      ns_adp_exception(3aolserver)

__________________________________________________________________________________________________________________________________________________

NAME
ns_adp_abort, ns_adp_break, ns_adp_exception, ns_adp_return - ADP exception handling SYNOPSIS
ns_adp_abort ?result? ns_adp_break ?result? ns_adp_exception ?varName? ns_adp_return ?result? _________________________________________________________________ DESCRIPTION
These commands enable early return and interrupt of an ADP execution. Internally, the exception routines sets a flag and return TCL_ERROR to begin unwinding the current Tcl call stack and return control to the ADP evaluation engine. It is possible for an enclosing catch com- mand to catch the exception and stop Tcl from returning control to ADP. The ns_adp_exception command can be used to test for this condi- tion. ns_adp_abort ?result? This command stops ADP processing, raising an execution and unwinding the stack to the top level as an error condition. The request handling code which invokes the first ADP file will normallly generate an error message in this case, ignoring the contents of the output buffer, if any. Note that the exeception can be caught by a catch command in script block which executes ns_adp_abort. How- ever, when that block returns control to the ADP execution engine, the stack will be continue to be unwound. The optional result argument, if present, will be used to set the Tcl interpreter result string. ns_adp_break ?result? This command stops execution of ADP and unwinds the ADP call stack. Unlike ns_adp_abort, the request handling code will generate a normal HTTP response with any contents of the output buffer. The optional result argument, if present, will be used to set the Tcl interpreter result string. ns_adp_exception ?varName? This command returns a boolean value if an exception has been raised. The optional varName provides the name of a variable to store one of ok, break, abort, or return to indicate the type of exception raised. ns_adp_return ?result? This function halts processing of the current ADP and sends any pending output (from ns_adp_puts or static HTML) up to the point where it was called to the browser. Nothing in the current ADP is output or executed after it is called. The return_value, if spec- ified, becomes the return value of the ADP. Note that this function returns only one level up the call stack. By contrast, ns_adp_abort and ns_adp_break will return all the way up the call stack. ns_adp_return is typically used from an ADP included by another ADP, to stop processing of the inner ADP while allowing the calling ADP to continue. The optional result argument, if present, will be used to set the Tcl interpreter result string. EXAMPLE
The following example demonstrates halting execution of the ADP after returning a complete response with one of the ns_return style com- mands: <% if !$authorized { ns_returnunauthorized; # Send complete response. ns_adp_abort; # Execution stops here. } %>. SEE ALSO
ns_adp(n) KEYWORDS
ADP, dynamic pages, exception AOLserver 4.5 ns_adp_exception(3aolserver)
All times are GMT -4. The time now is 10:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy