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
Debian::Dependencies(3pm)				User Contributed Perl Documentation				 Debian::Dependencies(3pm)

NAME
Debian::Dependencies - a list of Debian::Dependency objects SYNOPSIS
my $dl = Debian::Dependencies->new('perl, libfoo-perl (>= 3.4)'); print $dl->[1]->ver; # 3.4 print $dl->[1]; # libfoo-perl (>= 3.4) print $dl; # perl, libfoo-perl (>= 3.4) $dl += 'libbar-perl'; print $dl; # perl, libfoo-perl (>= 3.4), libbar-perl print Debian::Dependencies->new('perl') + 'libfoo-bar-perl'; # simple 'sum' print Debian::Dependencies->new('perl') + Debian::Dependencies->new('libfoo, libbar'); # add (concatenate) two lists print Debian::Dependencies->new('perl') + Debian::Dependency->new('foo'); # add depeendency to a list DESCRIPTION
Debian::Dependencies a list of Debian::Dependency objects, with automatic construction and stringification. Objects of this class are blessed array references. You can safely treat them as arrayrefs, as long as the elements you put in them are instances of the Debian::Dependency class. When used in string context, Debian::Dependencies converts itself into a comma-delimitted list of dependencies, suitable for dependency fields of debian/control files. CLASS METHODS new(dependency-string) Constructs a new Debian::Dependencies object. Accepts one scalar argument, which is parsed and turned into an arrayref of Debian::Dependency objects. Each dependency should be delimitted by a comma and optional space. The exact regular expression is "/s*,s*/". OBJECT METHODS add( dependency[, ... ] ) Adds dependency (or a list of) to the list of dependencies. If the new dependency is a subset of or overlaps some of the old dependencies, it is not duplicated. my $d = Debian::Dependencies('foo, bar (<=4)'); $d->add('foo (>= 4), bar'); print "$d"; # foo (>= 4), bar (>= 4) dependency can be either a Debian::Dependency object, a Debian::Deendencies object, or a string (in which case it is converted to an instance of the Debian::Dependencies class). remove( dependency, ... ) =item remove( dependencies, ... ) Removes a dependency from the list of dependencies. Instances of Debian::Dependency and Debian::Dependencies classes are supported as arguments. Any non-reference arguments are coerced to instances of Debian::Dependencies class. Only dependencies that are subset of the given dependencies are removed: my $deps = Debian::Dependencies->new('foo (>= 1.2), bar'); $deps->remove('foo, bar (>= 2.0)'); print $deps; # bar Returns the list of the dependencies removed. has( dep ) Return true if the dependency list contains given dependency. In other words, this returns true if the list of dependencies guarantees that the given dependency will be satisfied. For example, "foo, bar" satisfies "foo", but not "foo (>= 5)". prune() This method is deprecated. If you want to sort the dependency list, either call "sort" or use normal perl sorting stuff on the dereferenced array. sort() Sorts the dependency list by packagee name, version and relation. SEE ALSO
Debian::Dependency AUTHOR
Damyan Ivanov <dmn@debian.org> COPYRIGHT &; LICENSE Copyright (C) 2008, 2009, 2010 Damyan Ivanov <dmn@debian.org> Copyright (C) 2009 gregor herrmann <gregoa@debian.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. perl v5.14.2 2012-01-15 Debian::Dependencies(3pm)
All times are GMT -4. The time now is 11:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy