I have a comma delimited file that sometimes has addresses details in. The problem is that the address detail can be seen as:
"Sample House, Sample Road". When I run a script specifying the file is comma delimited I would like it to ignore comma's that are in between speech marks.
Is this... (2 Replies)
I would like to know code that will delete multiple text from a comma delimited file. For example, how would the comma delimited file below delete the word 'PEST' in Perl language (previously an excel file that was converted to a csv and the last column was PEST):
1, 2,43,34, bosx,PEST
1,... (1 Reply)
Hi,
I have two files that I need to match patterns with and the second file has comma delimited rows of data that match but I'm having trouble getting a script to work that gives me the match output to these sets :
file 1:
PADG_05255
PADG_06803
PADG_07148
PADG_02849
PADG_02886... (8 Replies)
Hi All,
I have output of sql saved in comma separated file.
Now i need to read line by line this file
and assign word to a unix variable for further processing
Eg:
Test file
world, 1, 3, 4
earth,2,3,4,5
moon,1,2,3,4
Output should be
word1= world
word2=1
echo " first word... (7 Replies)
I have a log file that contains several reports with following format.
<Start of delimiter> Report1 header
Report1 header continue
Report1 header continue
Record1 header
Record1 header continue
Record1 header continue
field1 field2 field3 field4
------... (1 Reply)
Hi,
Is there a one-liner that I can use to change a line of text into a comma delimited string?
For example, convert
user1
user2
user3
user4to
user1,user2,user3,user4Currently using while read x, although got the extra comma at the end that I have to remove manually.
Please... (5 Replies)
Hi,
I am not sure if I've posted this question before.
Anyway, I previously asked about converting lines of text into a comma delimited string. Now I am needing to do the other way around ... :( :o
Can anyone advise how is this possible?
Example as below:
Converting records/lines to... (2 Replies)
Hi,
I am wanting to create a script that will construct a SQL statement based on a a space delimited string that it read from a config file.
Example of the SQL will be
For example, it will read a string like "AAA BBB CCC" and assign to a variable named IN_STRING.
I then concatenate... (2 Replies)
Hi,
Apologies in advance to the moderator if I am posting this the wrong way.
I've searched and found the solution to an old post but as it is a very old post, I don't see an option to update it with additional question.
The question I have is in relation to the following post:
How to... (6 Replies)
Discussion started by: newbie_01
6 Replies
LEARN ABOUT SUNOS
uucleanup
uucleanup(1M) System Administration Commands uucleanup(1M)NAME
uucleanup - uucp spool directory clean-up
SYNOPSIS
/usr/lib/uucp/uucleanup [-Ctime] [-Dtime] [-mstring] [-otime] [-ssystem] [-Wtime] [-xdebug-level] [-Xtime]
DESCRIPTION
uucleanup will scan the spool directories for old files and take appropriate action to remove them in a useful way:
o Inform the requester of send/receive requests for systems that can not be reached.
o Return undeliverable mail to the sender.
o Deliver rnews files addressed to the local system.
o Remove all other files.
In addition, there is a provision to warn users of requests that have been waiting for a given number of days (default 1 day). Note: uucle-
anup will process as if all option times were specified to the default values unless time is specifically set.
This program is typically started by the shell uudemon.cleanup, which should be started by cron(1M).
OPTIONS -Ctime Remove any C. files greater or equal to time days old and send appropriate information to the requester (default 7 days).
-Dtime Remove any D. files greater or equal to time days old, make an attempt to deliver mail messages, and execute rnews when
appropriate (default 7 days).
-mstring Include string in the warning message generated by the -W option. The default line is "See your local administrator to
locate the problem".
-otime Delete other files whose age is more than time days (default 2 days).
-ssystem Execute for system spool directory only.
-Wtime Any C. files equal to time days old will cause a mail message to be sent to the requester warning about the delay in con-
tacting the remote. The message includes the JOBID, and in the case of mail, the mail message. The administrator may
include a message line telling whom to call to check the problem (-m option) (default 1 day).
-xdebug-level Produce debugging output on standard ouput. debug-level is a single digit between 0 and 9; higher numbers give more
detailed debugging information. (This option may not be available on all systems.)
-Xtime Any X. files greater or equal to time days old will be removed. The D. files are probably not present (if they were, the X.
could get executed). But if there are D. files, they will be taken care of by D. processing (default 2 days).
FILES
/usr/lib/uucp directory with commands used by uucleanup internally
/var/spool/uucp spool directory
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWbnuu |
+-----------------------------+-----------------------------+
SEE ALSO uucp(1C), uux(1C), cron(1M), attributes(5)SunOS 5.10 19 May 1993 uucleanup(1M)