Sponsored Content
Top Forums Shell Programming and Scripting Remove first column from file Post 302372741 by proactiveaditya on Wednesday 18th of November 2009 03:47:44 PM
Old 11-18-2009
Thanks,

Code:
cat test.txt |awk '{sub(/\| \|/,"")}1'

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Remove duplicate rows of a file based on a value of a column

Hi, I am processing a file and would like to delete duplicate records as indicated by one of its column. e.g. COL1 COL2 COL3 A 1234 1234 B 3k32 2322 C Xk32 TTT A NEW XX22 B 3k32 ... (7 Replies)
Discussion started by: risk_sly
7 Replies

2. Shell Programming and Scripting

Remove part of a column in a text file

I have a text file with delimiter "|" and sometimes the zipcode is in "5th" column or "6th" column. I want to scan the file and remove the "-2323" from the zipcode which has zip+4 digits From blah|blah|foo|bar||blah|945523-232|USA blah|blah|foo|bar||blah|foo|94555-2323|USA To... (8 Replies)
Discussion started by: gubbu
8 Replies

3. UNIX for Dummies Questions & Answers

How to remove a string from a specific column in a file

Hello, A basic query. How can I remove a string from a specific column. For example, remove "abcd" just from column 2 in example file: abcd abcd1 abcd abcd2 abcd abcd3 to get output: abcd 1 abcd 2 abcd 3 Thank you!:) (4 Replies)
Discussion started by: auburn
4 Replies

4. Shell Programming and Scripting

Remove Specific Column in a File using awk

Hi, I would like to ask your expertise to remove specific column no. 8 in the below file using but I don't have an idea on how to simply do this using awk command. Appreciate your help in advance. Input f: ABC 1 1XC CDA 1 2YC CCC 1 3XC AVD 1 3XA Expected output file: ABC 1 1C CDA... (9 Replies)
Discussion started by: zzavilz
9 Replies

5. Shell Programming and Scripting

How to remove mth and nth column from a file?

Hi, i need to remove mth and nth column from a csv file. here m and n is not a specific number. it is a variable ex. m=2 n=5 now i need to remove the 2nd and 5th line.. Please help how to do that. Thanks!!! (18 Replies)
Discussion started by: zaq1xsw2
18 Replies

6. Shell Programming and Scripting

Remove the values from a certain column without deleting the Column name in a .CSV file

(14 Replies)
Discussion started by: dhruuv369
14 Replies

7. Shell Programming and Scripting

How to remove duplicated column in a text file?

Dear all, How can I remove duplicated column in a text file? Input: LG10_PM_map_19_LEnd 1000560 G AA AA AA AA AA GG LG10_PM_map_19_LEnd 1005621 G GG GG GG AA AA GG LG10_PM_map_19_LEnd 1011214 A AA AA AA AA GG GG LG10_PM_map_19_LEnd 1011673 T TT TT TT TT CC CC... (1 Reply)
Discussion started by: huiyee1
1 Replies

8. Shell Programming and Scripting

Remove duplicate values in a column(not in the file)

Hi Gurus, I have a file(weblog) as below abc|xyz|123|agentcode=sample code abcdeeess,agentcode=sample code abcdeeess,agentcode=sample code abcdeeess|agentadd=abcd stereet 23343,agentadd=abcd stereet 23343 sss|wwq|999|agentcode=sample1 code wqwdeeess,gentcode=sample1 code... (4 Replies)
Discussion started by: ratheeshjulk
4 Replies

9. UNIX for Advanced & Expert Users

How to remove the delimiter from the column value within a file?

Hello All, we have some 10 files wherein we are using the ASCII NULL as separator which is nothing but '^@' and we need to change it to pipe delimited file before loading to database. Most of the data seems to be fine but there are instances where this separator tends to appear in the middle of... (9 Replies)
Discussion started by: dJHa
9 Replies
CVS-DEBUILD(1)						      General Commands Manual						    CVS-DEBUILD(1)

NAME
cvs-debuild - build a Debian package using cvs-buildpackage and debuild SYNOPSIS
cvs-debuild [debuild options] [cvs-buildpackage options] [--lintian-opts lintian options] DESCRIPTION
cvs-debuild is a wrapper around cvs-buildpackage to run it with debuild as the package-building program. (This cannot simply be accom- plished using the -C option of cvs-buildpackage, as it does not know how to handle all of the special debuild options.) The program simply stashes the debuild and lintian options, and passes them to debuild when it is called by cvs-buildpackage. All of the standard debuild options may be used (as listed below), but note that the root command specified by any --rootcmd or -r command-line option will be passed as an option to cvs-buildpackage. The first non-debuild option detected will signal the start of the cvs-buildpackage options. The selection of the root command is slightly subtle: if there are any command-line options, these will be used. If not, then if cvs- buildpackage is set up to use a default root command, that will be used. Finally, if neither of these are the case, then debuild will use its procedures to determine an appropriate command, as described in its documentation. See the manpages for debuild(1) and cvs-buildpackage for more information about the behaviour of each. OPTIONS
The following are the debuild options recognised by cvs-debuild. All cvs-buildpackage and lintian options are simply passed to the appro- priate program. For explanations of the meanings of these variables, see debuild(1). --no-conf, --noconf --rootcmd=gain-root-command, -rgain-root-command --preserve-env --preserve-envvar=var, -evar --set-envvar=var=value, -evar=value --lintian, --no-lintian --ignore-dirname, --check-dirname These should not be needed, but it is provided nevertheless. SEE ALSO
cvs-buildpackage(1), debuild(1), dpkg-buildpackage(1) and lintian(1). AUTHOR
This program was written by Julian Gilbey <jdg@debian.org>. DEBIAN
Debian Utilities CVS-DEBUILD(1)
All times are GMT -4. The time now is 07:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy