Sponsored Content
Full Discussion: How to delete rows?
Top Forums UNIX for Dummies Questions & Answers How to delete rows? Post 302771319 by priyanka.premra on Wednesday 20th of February 2013 09:16:34 AM
Old 02-20-2013
Hi thank you. But that is only sorting the file.

But I cannot display this info in one line/

I always get
Code:
 Corresponding Sources
  , , ,1, 196 95 95,77

Any way i can take out those spaces?

---------- Post updated at 09:16 AM ---------- Previous update was at 09:16 AM ----------

Hi thank you. But that is only sorting the file.

But I cannot display this info in one line/

I always get
Corresponding Sources
, , ,1, 196 95 95,77

Any way i can take out those spaces?

Last edited by Scrutinizer; 02-20-2013 at 10:55 AM.. Reason: code tags
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to delete particular rows from a file

Hi I have a file having 1000 rows. Now I would like to remove 10 rows from it. Plz give me the script. Eg: input file like 4 1 4500.0 1 5 1 1.0 30 6 1 1.0 4500 7 1 4.0 730 7 2 500000.0 730 8 1 785460.0 45 8 7 94255.0 30 9 1 31800.0 30 9 4 36000.0 30 10 1 15000.0 30... (5 Replies)
Discussion started by: suresh3566
5 Replies

2. Shell Programming and Scripting

how to delete duplicate rows in a file

I have a file content like below. "0000000","ABLNCYI","BOTH",1049,2058,"XYZ","5711002","","Y","","","","","","","","" "0000000","ABLNCYI","BOTH",1049,2058,"XYZ","5711002","","Y","","","","","","","","" "0000000","ABLNCYI","BOTH",1049,2058,"XYZ","5711002","","Y","","","","","","","",""... (5 Replies)
Discussion started by: vamshikrishnab
5 Replies

3. Shell Programming and Scripting

delete rows in a file based on the rows of another file

I need to delete rows based on the number of lines in a different file, I have a piece of code with me working but when I merge with my C application, it doesnt work. sed '1,'\"`wc -l < /tmp/fileyyyy`\"'d' /tmp/fileA > /tmp/filexxxx Can anyone give me an alternate solution for the above (2 Replies)
Discussion started by: Muthuraj K
2 Replies

4. UNIX for Advanced & Expert Users

Delete rows from a file...!!

Say i have a file with X rows and Y columns....i see that in some of the rows,some columns are blank (no value set)...i wish to delete such rows....how can it be done? e.g 181766 100 2009-06-04 184443 2009-06-04 10962 151 2009-06-04 161 2009-06-04... (7 Replies)
Discussion started by: ak835
7 Replies

5. Shell Programming and Scripting

delete the rows from the files

for example: this is the data file test.txt with more than 1000 rows 1. ccc 200 2.ddd 300 3.eee 400 4 fff 5000 ........ 1000 ddd 500 .... I would like to keep the rows with ccc and ddd, all other rows will be deleted, I still need the same output file: test.txt, how can... (5 Replies)
Discussion started by: jdsignature88
5 Replies

6. UNIX for Dummies Questions & Answers

Delete all rows but leaving first and last ones

Hello, Merry Christmas to all! I wish you the best for these holidays and the best for the next year 2011. I'd like your help please, I need to delete all the rows in the third column of my file, but without touching nor changing the first and last value position, this is an example of my... (2 Replies)
Discussion started by: Gery
2 Replies

7. Shell Programming and Scripting

Delete duplicate rows

Hi, This is a followup to my earlier post him mno klm 20 76 . + . klm_mango unix_00000001; alp fdc klm 123 456 . + . klm_mango unix_0000103; her tkr klm 415 439 . + . klm_mango unix_00001043; abc tvr klm 20 76 . + . klm_mango unix_00000001; abc def klm 83 84 . + . klm_mango... (5 Replies)
Discussion started by: jacobs.smith
5 Replies

8. UNIX for Dummies Questions & Answers

delete rows with a criteria

Hi, I would like to know how can I delete rows of a text file if from the 3rd column onwards there is only zeros? Thanks in advance (7 Replies)
Discussion started by: fadista
7 Replies

9. Shell Programming and Scripting

delete the same rows

each individual (row) has genotype expressed for each SNP (column) file1.txt 1 1 A G A T G T A A A A A A A A A A A A A A A A A A A A A 2 2 G A A A A A A A A A A A A A A A A A A A A A A A A A A 3 3 A A A A A A A A A A A A A A A A A A A A A A A A A A A 4 4 G A G T A T A A A A A A A A A A A... (3 Replies)
Discussion started by: johnkim0806
3 Replies

10. Shell Programming and Scripting

Delete rows with conditions

Hi everyone, I will appreciate a lot if anyone can help me about a simple issue. I have a data file, and I need to remove some rows with a given condition. So here is a part of my data file: 5,14,1,3,3,0,0,-0.29977188269E+01 5,16,1,4,4,0,0,0.30394279900E+02... (4 Replies)
Discussion started by: hayreter
4 Replies
MADISON-LITE(1) 					  Debian General Commands Manual					   MADISON-LITE(1)

NAME
madison-lite -- display versions of Debian packages in an archive SYNOPSIS
madison-lite [--config-file file] [--mirror directory] [--nocache] [--update] [-S] [-r] [-a architecture[,...]] [-c component[,...]] [-s suite[,...]] package [...] DESCRIPTION
madison-lite inspects a local Debian package archive and displays the versions of the given packages found in each suite (for example, stable, testing, or unstable) in a brief but easily human-readable form. It aims to be a drop-in replacement for the madison utility (since renamed to dak ls), from the dak archive management suite that runs on the central Debian archive systems, but one which can run without access to the archive's SQL database. The following options are available: --config-file file Read configuration from file, and ignore the system configuration file (see CONFIGURATION below). --mirror directory Quick configuration: use directory as the top level of the Debian mirror. --nocache Normally, parts of the Packages and Sources files in the archive are cached in ~/.madison-lite/cache for speed. This option disables that behaviour. --update Force caches of Packages and Sources files to be updated. -S, --source-and-binary Interpret package as a source package name, and display versions of any associated binary packages as well as of the source package. -r, --regex Interpret package as a Perl regular expression anchored at the start of the package name rather than as an exact name. Make sure to quote any shell metacharacters such as '*' or '?' if necessary. -a, --architecture architecture[,...] Display only entries for packages built for these architectures. Separate multiple architectures with commas or spaces. -c, --component component[,...] Display only entries in the given components. Separate multiple components with commas or spaces. -s, --suite suite[,...] Display only entries in the given suites. Separate multiple suites with commas or spaces. CONFIGURATION
madison-lite reads configuration information from the file named by --config-file, or, if that is not supplied, from the first of ~/.madison-lite/config and /etc/madison-lite/config that exists. The following configuration directives are recognized: mirror directory Set the top-level directory of the local Debian mirror. Relative directories in the suite directive are interpreted relative to this directory. Defaults to the current directory. suite name directory [component [...]] Defines the suite name based at directory, containing the specified components (defaulting to all subdirectories of directory). Output is displayed following the order of suite directives in the configuration file. If no suite directives are present, then every subdi- rectory of the dists directory under mirror is treated as a suite, with all of their subdirectories as components. The Debian archive is structured such that the subdirectories of each suite directory identify components (such as main). Each of those in turn has subdirectories for each architecture (binary-i386, and so on), each of which contains any or all of Packages, Packages.gz, and Packages.bz2 files listing binary packages; it also has a subdirectory called source which contains any or all of Sources, Sources.gz, and Sources.bz2 files listing source packages. The configuration file may contain comment lines, which start with a '#' character. EXAMPLES
Show versions of the coreutils package: $ madison-lite coreutils Show versions of all binary packages on powerpc produced by the glibc source package: $ madison-lite -S -a powerpc glibc Show versions of all packages in the unstable suite whose names begin with 'man': $ madison-lite -s unstable -r 'man.*' An example configuration file for a simple local mirror: mirror /mirror/debian suite unstable dists/unstable main suite unstable-non-US non-US/dists/unstable non-US/main SEE ALSO
dpkg-scanpackages(8), dpkg-scansources(8), apt-ftparchive(1) AUTHORS
madison-lite was written by Colin Watson <cjwatson@debian.org>. The interface mirrors that of madison (since renamed to dak ls), written by James Troup. Debian August 1, 2007 Debian
All times are GMT -4. The time now is 06:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy