...
With regular expressions (pattern matching) I am ignoring all the lines except the ones which are NOT directories with long listing format.
So I consider only: -rwxrwxrwx 1 sn sn 15348 2007-05-11 08:37 This is a file name with seven spaces.jar*
-rwxrwxrwx 1 sn sn 22395 2007-05-11 08:37 This is a file name with eighteen spaces.jar*
-rwxrwxrwx 1 sn sn 73687 2007-05-11 08:37 ibmjcefw.jar*
-rwxrwxrwx 1 sn sn 767101 2007-05-11 08:37 ibmjceprovider.jar*
Question is: How do I get the file names with preserving the white spaces in between?
...
Or making use of the fact that the files' timestamp is a pattern found first before the filenames and its length is fixed, another alternative would be:
How would I delete white spaces in a specified file?
Also, I'd like to know what command I would use to take something off a regular expression, and put it onto another.
ie.
.
.
.
expression1 <take_off>
.
.
.
expression2 (put here)
.
.
.
Any help would be great, thanks! (10 Replies)
hi all...
i have the next question:
i have a flat file with a lot of records (lines). Each record has 10 fields, which are separated by pipe (|). My problem is what sometimes, in the first record, there are white spaces (no values, nothing) in the beginning of the record, like this:
ws ws... (2 Replies)
Hi,
I have a CSV file with footer information as below. The third value is the number of records in the file. Sometimes it contains both leading and trailing white spaces which i want to trim using awk.
C,FOOTER , 00000642
C,FOOTER , 00000707
C, FOOTER,... (2 Replies)
I have a variable that calls in a string from txt file. Problem is the string comes with an abundance of white spaces trailing it. Is there any easy way to trim the tailing white spaces off at the end? Thanks in advance. (9 Replies)
Anybody can help me
How can I replace only four first white spaces with , or any other characters
aaaa 08/31/2004 08/31/2009 permanent Logical Processors in System: 64
bedad 08/16/2001 08/15/2011 permanent Logical Processors in System: 64
badnv14 05/31/2008 05/30/2013 permanent Logical... (5 Replies)
what my code is doing, it is executing a sql file and the resullset of the query is getting stored in the text file in a fixed format. for that fixed format i have used the following code::
Code:
awk -F":"... (2 Replies)
Hi,
I am having problem in deleting the leading spaces:-
cat x.csv
baseball,NULL,8798765,Most played
baseball,NULL,8928192,Most played
baseball,NULL,5678945,Most played
cricket,NOTNULL,125782,Usually played
cricket,NOTNULL,678921,Usually played
$ nawk 'BEGIN{FS=","}!a... (2 Replies)
Dear Gurus
Can you please advise me on how to Replace all TAB characters with white spaces in a text file in AIX?
Either using vi or any utilities (2 Replies)
Hello!
I have one problem with my bash script - I would like to be able to read white space characters from stdin (for example single " ") - can I acomplish that somehow? I need to read only one character at the time, so I use read -s -n 1 var but it doesn't work for whitespaces apparently.
... (3 Replies)
Hello All ,
1. I am trying to do a task where I need to remove Blank spaces from my file , I am usingawk '{$1=$1}{print}' file>file1Input :-
;05/12/1990 ;31/03/2014 ;
Output:-
;05/12/1990 ;31/03/2014 ;This command is not removing all spaces from... (6 Replies)
Discussion started by: himanshu sood
6 Replies
LEARN ABOUT OSF1
xtgetsubresources
XtGetSubresources(3Xt)XtGetSubresources(3Xt)NAME
XtGetSubresources, XtVaGetSubresources - obtain subresources
SYNOPSIS
void XtGetSubresources(w, base, name, class, resources, num_resources, args, num_args)
Widget w;
XtPointer base;
String name;
String class;
XtResourceList resources;
Cardinal num_resources;
ArgList args;
Cardinal num_args;
void XtVaGetSubresources(w, base, name, class, resources, num_resources, ...)
Widget w;
XtPointer base;
String name;
String class;
XtResourceList resources;
Cardinal num_resources;
ARGUMENTS
Specifies the argument list to override resources obtained from the resource database. Specifies the base address of the subpart data
structure where the resources should be written. Specifies the class of the subpart. Specifies the name of the subpart. Specifies the
number of arguments in the argument list. Specifies the number of resources in the resource list. Specifies the resource list for the
subpart. Specifies the widget that wants resources for a subpart or that identifies the resource database to search. Specifies the vari-
able arguments to override resources obtained from the resource database.
DESCRIPTION
The XtGetSubresources function constructs a name/class list from the application name/class, the name/classes of all its ancestors, and the
widget itself. Then, it appends to this list the name/class pair passed in. The resources are fetched from the argument list, the resource
database, or the default values in the resource list. Then, they are copied into the subpart record. If args is NULL, num_args must be
zero. However, if num_args is zero, the argument list is not referenced.
SEE ALSO XtGetApplicationResources(3Xt), XtVaGetApplicationResources(3Xt)
X Toolkit Intrinsics -- C Language Interface
Xlib -- C Language X Interface
XtGetSubresources(3Xt)