Sponsored Content
Top Forums Shell Programming and Scripting Need to retain particular rows Post 302437281 by newpro on Wednesday 14th of July 2010 01:43:02 PM
Old 07-14-2010
vgersh99, pseudocoder, Thanks a lot... Both works nicely....
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to retain text using pax

I have a .tar file consisting of text and binary files. I ftp'd the .tar file using ftp binary. when I did the pax to unwind the tar file, I noiticed that the text files were encoded in binary. **How would I retain the text characteristics of the ascii text files, while also keeping the... (11 Replies)
Discussion started by: idic5
11 Replies

2. Shell Programming and Scripting

how to retain leading zeros

Hi All, I am working with a fixed width file Forrmat. C1 Number (10,3) C2 Number (10,3) e.g. c1= 0000000100.000 c2= 0000000020.000 0000000100.0000000000020.000 I have to perform c1 - c2 . i.e. I want answer to be 0000000080.000. but I am loosing the leading zeros( only getting... (3 Replies)
Discussion started by: Manish Jha
3 Replies

3. Shell Programming and Scripting

Retain 3 latest files

Guys, Please can you tell me how to retain 3 latest files in a directory and get rid of the rest ? Thanks very much Regards, Ganesh (6 Replies)
Discussion started by: kamathg
6 Replies

4. Shell Programming and Scripting

Retain File Timestamp

There are directories of files that I have to run the dos2ux command on to get ride of the carriage return characters. Easy enough, but I have to retain the original timestamps on the files. I am thinking that I am going to have to strip off the timestamp for each file and convert it to unix time... (3 Replies)
Discussion started by: scotbuff
3 Replies

5. Shell Programming and Scripting

retain last 1000 line in a file

I have large file with around 100k+ lines. I wanted to retain only the last 100 lines in that file. One way i thought was using tail -1000 filename > filename1 mv filename1 filename But there should be a better solution.. Is there a way I can use sed or any such command to change the... (9 Replies)
Discussion started by: nss280
9 Replies

6. Shell Programming and Scripting

Replace and retain entries.

Replace and retain entries. I have a certain users that will replaced a certain values, but if it has already a value it will retain its values. Thanks Data to be placed: account_locked = false loginretries = 0 pwdwarntime = 0 ... (4 Replies)
Discussion started by: kenshinhimura
4 Replies

7. Shell Programming and Scripting

How to retain blank spaces in AWK?

Hi all, I have space delimated file which look like this 1 2 3 4 5 6 7 8 9 1 0 11 I am using simple awk command to read the second column awk '{print $2}' input_file but i got the output like this which also read 10 from the third column 2 6... (8 Replies)
Discussion started by: bsn2011
8 Replies

8. Shell Programming and Scripting

how to retain zero

Hi everyone i have simple mathematical problem bash> echo date +%m bash> 03 bash> month=`date +%m` bash> lmonth=$month-1 bash> echo $lmonth bash>2 it gives me two but i want the answer of 02 please help me how to do this (6 Replies)
Discussion started by: aishsimplesweet
6 Replies

9. UNIX for Advanced & Expert Users

retain ownership

Hi, I have a script which transfers files/directories from one HP unix to another HP unix server using SCP but i need to retain ownership of files/folders same as source server my script is as follows cd /sasdata/TR_CNTO328/C0328T07/Dry_Run_1/Macros find . -type d -newer . -exec scp -pr {}... (6 Replies)
Discussion started by: tushar_spatil
6 Replies

10. Shell Programming and Scripting

Delete and retain some characters

Ive been trying to google and tried sed and awk. BUt still getting no exact formula. I would like to know how to parse this at: From: Compute Machin Appliance 3.2.9.10000 123456 To: Compute Machin Appliance 3.2.9.123456 (5 Replies)
Discussion started by: kenshinhimura
5 Replies
DD-LIST(1)						      General Commands Manual							DD-LIST(1)

NAME
dd-list - nicely list .deb packages and their maintainers SYNOPSIS
dd-list [-hiusV] [--help] [--stdin] [--sources Sources_file] [--dctrl] [--version] [--uploaders] [package ...] DESCRIPTION
dd-list produces nicely formatted lists of Debian (.deb) packages and their maintainers. Input is a list of source or binary package names on the command line (or the standard input if --stdin is given). Output is a list of the following format, where package names are source packages by default: J. Random Developer <jrandom@debian.org> j-random-package j-random-other Diana Hacker <diana@example.org> fun-package more-fun-package This is useful when you want, for example, to produce a list of packages that need to attention from their maintainers, e.g., to be rebuilt when a library version transition happens. OPTIONS
-h, --help Print brief help message. -i, --stdin Read package names from the standard input, instead of taking them from the command line. Package names are whitespace delimited. -d, --dctrl Read package list from standard input in the format of a Debian package control file. This includes the status file, or output of apt-cache. This is the fastest way to use dd-list, as it uses the maintainer information from the input instead of looking up the maintainer of each listed package. If no Source: line is given, the Package: name is used for output, which might be a binary package name. -s, --sources Sources_file Read package information from the specified Sources_files. This can be given multiple times. If no Sources_files are specified, any files matching /var/lib/apt/lists/*_source_Sources will be used. -u, --uploaders Also list developers who are named as uploaders of packages, not only the maintainers; this is the default behaviour, use --nou- ploaders to prevent it. Uploaders are indicated with "(U)" appended to the package name. -nou, --nouploaders Only list package Maintainers, do not list Uploaders. -b, --print-binary Use binary package names in the output instead of source package names (has no effect with --dctrl if the Package: line contains source package names). -V, --version Print the version. AUTHOR
Lars Wirzenius <liw@iki.fi> Joey Hess <joeyh@debian.org> Debian 2011-10-27 DD-LIST(1)
All times are GMT -4. The time now is 02:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy