Sponsored Content
Top Forums UNIX for Dummies Questions & Answers removing last field of the line Post 302099304 by adddy on Monday 11th of December 2006 08:25:24 AM
Old 12-11-2006
Data removing last field of the line

I have a text file containing

/database/sp/NTR_Vlr_Upload.sql
/database/tables/StatsTables.sql
/mib/ntr.mib
/mib/ntr.v2.mib
/scripts/operations/ntr/IMSITracer.ph


i want the last field after "/" removed like

/database/sp/
/database/tables/
/mib/
/mib/
/scripts/operations/ntr/

plz help
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Removing parts of a specific field

All, I have a field in a comma seperated file with hundreds of lines and about 20 columns and I wish to remove all numbers after the decimal point in field 4 on each line and output the rest to another file or write it back to itself. File is like this 20070126, 123.0, GBP, 1234.5678,... (9 Replies)
Discussion started by: kieranh
9 Replies

2. Shell Programming and Scripting

Removing duplicate field from MARC Record

Hello, I'm new to Perl programming and I have a duplicate 035 tag Voyager application field. The first 035 tag has the information I need but the second 035 tag created the bib id, which I don't need. This incident was performed on several records so I would have to run this script on several... (1 Reply)
Discussion started by: rcnick
1 Replies

3. UNIX for Dummies Questions & Answers

Removing spaces in the second field alone

Consider my input string as "abc|b f g|bj gy" I am expecting the output as "abc|bfg|bj gy". Please let me know how to achieve this in unix? Thanks (8 Replies)
Discussion started by: pandeesh
8 Replies

4. Shell Programming and Scripting

Compare Field in Current Line with Field in Previous

Hi Guys I have the following file Essentially, I am trying to find the right awk/sed syntax in order to produce the following 3 distinct files from the file above: Basically, I want to print the lines of the file as long as the second field of the current line is equal to the... (9 Replies)
Discussion started by: moutaye
9 Replies

5. Shell Programming and Scripting

sed to replace a field from a line with another field

i have something like this, cat filename.txt hui this si s"dfgdfg" omeone ipaddress="10.19.123.104" wel hope this works i want to replace only 10.19.123.104 with different ip say 10.19.123.103 i tried this sed -i "s/'ipaddress'/'ipaddress=10.19.123.103'/g" filename.txt ... (1 Reply)
Discussion started by: vivek d r
1 Replies

6. Shell Programming and Scripting

removing a particular field from some of the lines in a filed

Hi All, i have a file having multiple lines but mainly constitues of following two types 1) Sat,Oct,1,01:04:51,2011,Local,ESSBASE0,Info(1051037),Logging,out,user,210073155,,,active,for,63,minutes,GETS_SAL,loaded 2)... (2 Replies)
Discussion started by: dev.devil.1983
2 Replies

7. Shell Programming and Scripting

Removing duplicated first field rows

Hello, I am trying to eliminate rows where the first field is duplicated, leaving the row where the last field is "NET". Data file: 345234|22.34|LST 546543|55.33|LST 793929|98.23|LST 793929|64.69|NET 149593|49.22|LST Desired output: 345234|22.34|LST 546543|55.33|LST... (2 Replies)
Discussion started by: palex
2 Replies

8. Shell Programming and Scripting

Removing date field from the string

Hii I am trying to remove the date field from the following string. ODS_EPP_COVRG_STN_DETL_FILE_10032014.TXT. My output should be ODS_EPP_COVRG_STN_DETL_FILE.TXT I tried couple of things: echo ODS_EPP_COVRG_STN_DETL_FILE_10032014.TXT|sed 's/_*\.*//g' I am getting:... (9 Replies)
Discussion started by: skatpally
9 Replies

9. Shell Programming and Scripting

Command/script to match a field and print the next field of each line in a file.

Hello, I have a text file in the below format: Source Destination State Lag Status CQA02W2K12pl:D:\CAQA ... (10 Replies)
Discussion started by: pocodot
10 Replies

10. Shell Programming and Scripting

Removing line breaks inside a field

Hi all, I have a csv input file with total 60 fields and the fields are not enclosed with double quotes.One of the field(50th field) in this file has line breaks in it which results in the row getting split into multiple lines.This is causing my load(to table) to fail.I tried to enforce double... (3 Replies)
Discussion started by: Bobby_2000
3 Replies
QTextCodecPlugin(3qt)													     QTextCodecPlugin(3qt)

NAME
QTextCodecPlugin - Abstract base for custom QTextCodec plugins SYNOPSIS
All the functions in this class are reentrant when Qt is built with thread support.</p> #include <qtextcodecplugin.h> Public Members QTextCodecPlugin () ~QTextCodecPlugin () virtual QStringList names () const = 0 virtual QTextCodec * createForName ( const QString & name ) = 0 virtual QValueList<int> mibEnums () const = 0 virtual QTextCodec * createForMib ( int mib ) = 0 DESCRIPTION
The QTextCodecPlugin class provides an abstract base for custom QTextCodec plugins. The text codec plugin is a simple plugin interface that makes it easy to create custom text codecs that can be loaded dynamically into applications. Writing a text codec plugin is achieved by subclassing this base class, reimplementing the pure virtual functions names(), createForName(), mibEnums() and createForMib(), and exporting the class with the Q_EXPORT_PLUGIN macro. See the Qt Plugins documentation for details. See the IANA character-sets encoding file for more information on mime names and mib enums. See also Plugins. MEMBER FUNCTION DOCUMENTATION
QTextCodecPlugin::QTextCodecPlugin () Constructs a text codec plugin. This is invoked automatically by the Q_EXPORT_PLUGIN macro. QTextCodecPlugin::~QTextCodecPlugin () Destroys the text codec plugin. You never have to call this explicitly. Qt destroys a plugin automatically when it is no longer used. QTextCodec * QTextCodecPlugin::createForMib ( int mib ) [pure virtual] Creates a QTextCodec object for the mib enum mib. (See the IANA character-sets encoding file for more information) See also mibEnums(). QTextCodec * QTextCodecPlugin::createForName ( const QString & name ) [pure virtual] Creates a QTextCodec object for the codec called name. See also names(). QValueList<;int> QTextCodecPlugin::mibEnums () const [pure virtual] Returns the list of mib enums this plugin supports. See also createForMib(). QStringList QTextCodecPlugin::names () const [pure virtual] Returns the list of mime names this plugin supports. See also createForName(). SEE ALSO
http://doc.trolltech.com/qtextcodecplugin.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qtextcodecplugin.3qt) and the Qt version (3.1.1). Trolltech AS 9 December 2002 QTextCodecPlugin(3qt)
All times are GMT -4. The time now is 06:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy