Sponsored Content
Full Discussion: Strip part from filename
Top Forums UNIX for Dummies Questions & Answers Strip part from filename Post 302299954 by cv313x on Sunday 22nd of March 2009 02:32:18 PM
Old 03-22-2009
Strip part from filename

I've many file like this

01-file
01_-_file
01_-_file
01_-_file
01_-_file
01-file

I would remove bold part from filename. Suggestions?Thanks
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Strip extention from filename

Hey, How to strip the extention from filename? MY_XML.xml -> MY_XML MY_TEST_FILE.txt -> MY_TEST_FILE HELLO_WORLD.xls -> HELLO_WORLD Thanks in advance! (2 Replies)
Discussion started by: mpang_
2 Replies

2. Shell Programming and Scripting

part of a filename

Hi, I need to extract only a part of the filenames of some files. The files are named this way : .tap_profile_SIT02 I want the "SIT02" part, which is not the same for each file. I was able to get what I want with bash, but not with ksh. Here is the command I used in bash : find... (8 Replies)
Discussion started by: flame_eagle
8 Replies

3. Shell Programming and Scripting

detecting the part of a filename

I like to have the date in the 2008-09-01 format at the beginning of my filenames. I then hyphenate after that and then have my filename. I have a script that creates this for me. However, I may be working on files that already have the date format already in there and so I don't want to have a... (4 Replies)
Discussion started by: mainegate
4 Replies

4. Shell Programming and Scripting

How to strip off the leading filename from 'wc -l' command

Hi... can anyone please tell how do i strip off the leading filename from the wc -l command.... when i fire command wc -l new1 ... its giving output as 14 new1 i want the output as just '14'... i need to use this value in the calculations in the later part of the script..... (2 Replies)
Discussion started by: swap21783
2 Replies

5. Shell Programming and Scripting

Getting part of a filename

Hi All, I'm trying to get part of a filename and my skill with regular expression are lacking. I know I need to use SED but have no idea how to use it. I'm hoping that someone can help me out. The file names would be: prefix<partwewant>suffix.extension the prefix and suffix are always 3... (4 Replies)
Discussion started by: imonkey
4 Replies

6. Shell Programming and Scripting

cut the some part in filename

Hi All, I have the file & name is "/a/b/c/d/e/xyz.dat" I need "/a/b/c/d/e/" from the above file name. I tryning with echo and awk. But it not come. Please help me in this regard. Thanks & Regards, Dathu (3 Replies)
Discussion started by: pdathu
3 Replies

7. UNIX for Dummies Questions & Answers

to extract all the part of the filename before a particular word in the filename

Hi All, Thanks in Advance I am working on a shell script. I need some assistance. My Requirement: 1) There are some set of files in a directory like given below OTP_UFSC_20120530000000_acc.csv OTP_UFSC_20120530000000_faf.csv OTP_UFSC_20120530000000_prom.csv... (0 Replies)
Discussion started by: aealexanderraj
0 Replies

8. Programming

to extract all the part of the filename before a particular word in the filename

Hi All, Thanks in Advance I am working on a shell script. I need some assistance. My code: if then set "subscriber" "promplan" "mapping" "dedicatedaccount" "faflistSub" "faflistAcc" "accumulator"\ "pam_account"; for i in 1 2 3 4 5 6 7 8;... (0 Replies)
Discussion started by: aealexanderraj
0 Replies

9. Shell Programming and Scripting

Finding the part of a filename

Hi, I am writing an ebuild for Gentoo Linux operating system. Writing an ebuild is about Bash scripting where I am a newbie. So, my ebuild must find a part of a specific filename. Such a filaname my look like this: libvclient_release_x64.so.740and I must to find the number at the and of... (18 Replies)
Discussion started by: csanyipal
18 Replies
XDITVIEW(1)						      General Commands Manual						       XDITVIEW(1)

NAME
xditview - display ditroff output SYNOPSIS
xditview [ -toolkitoption ... ] [ -option ... ] [ filename ] DESCRIPTION
The xditview program displays ditroff output on an X display. It uses no special metrics and automatically converts the printer coordi- nates into screen coordinates; using the user-specified screen resolution, rather than the actual resolution so that the appropriate fonts can be found. If ``-'' is given as the filename, xditview reads from standard input. If ``|'' is the first character of filename, xditview forks sh to run the rest of the ``file name'' and uses the standard output of that command. OPTIONS
Xditview accepts all of the standard X Toolkit command line options along with the additional options listed below: -page page-number This option specifies the page number of the document to be displayed at start up time. -resolution screen-resolution This specifies the desired screen resolution to use; fonts will be opened by requesting this resolution field in the XLFD names. -noPolyText Some X servers incorrectly implement PolyText with multiple strings per request. This option suppesses the use of this feature in xditview. -backingStore backing-store-type Redisplay can take up to a second or so; this option causes the server to save the window contents so that when it is scrolled around the viewport, the window is painted from contents saved in backing store. backing-store-type can be one of Always, When- Mapped or NotUseful. The following standard X Toolkit command line arguments are commonly used with xditview: -bg color This option specifies the color to use for the background of the window. The default is white. -bd color This option specifies the color to use for the border of the window. The default is black. -bw number This option specifies the width in pixels of the border surrounding the window. -fg color This option specifies the color to use for displaying text. The default is black. -fn font This option specifies the font to be used for displaying widget text. The default is fixed. -rv This option indicates that reverse video should be simulated by swapping the foreground and background colors. -geometry geometry This option specifies the preferred size and position of the window. -display host:display This option specifies the X server to contact. -xrm resourcestring This option specifies a resource string to be used. X DEFAULTS
This program uses a Dvi widget. It understands all of the core resource names and classes as well as: width (class Width) Specifies the width of the window. height (class Height) Specifies the height of the window. foreground (class Foreground) Specifies the default foreground color. font (class Font) Specifies the font to be used for error messages. FontMap (class FontMap) To associate the ditroff fonts with appropriate X fonts, this string resource contains a set of new-line separated specifications, each of which consists of a ditroff name, some white space and an XLFD pattern with * characters in appropriate places to allow all sizes to be listed. The default fontMap is: R -*-times-medium-r-normal--*-*-*-*-*-*-iso8859-1 I -*-times-medium-i-normal--*-*-*-*-*-*-iso8859-1 B -*-times-bold-r-normal--*-*-*-*-*-*-iso8859-1 F -*-times-bold-i-normal--*-*-*-*-*-*-iso8859-1 BI -*-times-bold-i-normal--*-*-*-*-*-*-iso8859-1 C -*-courier-medium-r-normal--*-*-*-*-*-*-iso8859-1 CO -*-courier-medium-o-normal--*-*-*-*-*-*-iso8859-1 CB -*-courier-bold-r-normal--*-*-*-*-*-*-iso8859-1 CF -*-courier-bold-o-normal--*-*-*-*-*-*-iso8859-1 H -*-helvetica-medium-r-normal--*-*-*-*-*-*-iso8859-1 HO -*-helvetica-medium-o-normal--*-*-*-*-*-*-iso8859-1 HB -*-helvetica-bold-r-normal--*-*-*-*-*-*-iso8859-1 HF -*-helvetica-bold-o-normal--*-*-*-*-*-*-iso8859-1 N -*-new century schoolbook-medium-r-normal--*-*-*-*-*-*-iso8859-1 NI -*-new century schoolbook-medium-i-normal--*-*-*-*-*-*-iso8859-1 NB -*-new century schoolbook-bold-r-normal--*-*-*-*-*-*-iso8859-1 NF -*-new century schoolbook-bold-i-normal--*-*-*-*-*-*-iso8859-1 A -*-charter-medium-r-normal--*-*-*-*-*-*-iso8859-1 AI -*-charter-medium-i-normal--*-*-*-*-*-*-iso8859-1 AB -*-charter-bold-r-normal--*-*-*-*-*-*-iso8859-1 AF -*-charter-bold-i-normal--*-*-*-*-*-*-iso8859-1 S -*-symbol-medium-r-normal--*-*-*-*-*-*-adobe-fontspecific S2 -*-symbol-medium-r-normal--*-*-*-*-*-*-adobe-fontspecific USING XDITVIEW WITH DITROFF
You can use any ditroff output file with xditview, although files which use the fonts appropriate to the fontMap will look more accurate on the screen. On servers which support scaled fonts, all requested font sizes will be accurately reflected on the screen; for servers which do not support scaled xditview will use the closest font from the same family. SEE ALSO
X(7x), xrdb(1), ditroff(1), X Logical Font Description Conventions ORIGIN
Portions of this program originated in xtroff which was derived from suntroff. COPYRIGHT
Copyright ([, X Consortium See X(1) for a full statement of rights and permissions. AUTHORS
Keith Packard (MIT X Consortium) Richard L. Hyde (Purdue) David Slattengren (Berkeley) Malcom Slaney (Schlumberger Palo Alto Research) Mark Moraes (University of Toronto) X Version 11 Release 6.6 XDITVIEW(1)
All times are GMT -4. The time now is 01:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy