I have a pipe delimited input file as below. First byte of the each line indicate the record type. Then i need to split the file based on record_type = null,0,1,2,6 and create 5 files. How do i do this in a ksh script? Pls help
|sl||SL|SL|SL|1996/04/03|1988/09/15|C|A|sl||||*|... (4 Replies)
Hi,
I want to replace a field in a text delimited file with the actual number of records in the same file.
HDR|ABCD|10-13-2008 to 10-19-2008.txt|10-19-2008|XYZ
DTL|0|5464-1|0|02-02-2008|02-03-2008||||F|||||||||
DTL|1|5464-1|1|02-02-2008|02-03-2008|1||JJJ... (3 Replies)
i have a file whose data is like this::
osr_pe_assign|-120|wg000d@att.com|4|
osr_evt|-21|wg000d@att.com|4|
pe_avail|-21|wg000d@att.com|4|
osr_svt|-11|wg000d@att.com|4|
pe_mop|-13|wg000d@att.com|4|
instar_ready|-35|wg000d@att.com|4|
nsdnet_ready|-90|wg000d@att.com|4|... (6 Replies)
I have a large flat file with variable length fields that are pipe delimited. The file has no new line or CR/LF characters to indicate a new record. I need to parse the file and after some number of fields, I need to insert a CR/LF to start the next record.
Input file ... (2 Replies)
I have a large(ish) pipe delimited file.
The last line of the file contains a total row count and a checksum:
END|1537451|1328569446
After making other adjustments to the file, I need to strip out the checksum and apply a new value - I have a script to generate the checksum and 'cat' it... (3 Replies)
Hi All,
I have space delimited file similar to the one as shown below.. I need to convert it as a pipe delimited, the values inside the pipe delimited file should be as highlighted...
AA ATIU2345098809 009697 005374
BB ATIU2345097809 005445 006518
CC ATIU9685098809 003215 003571
DD... (7 Replies)
I have a file which was pipe delimited, I need to make it tab delimited. I tried with sed but no use
cat file | sed 's/|//t/g'
The above command substituted "/t" not tab in the place of pipe.
Sample file:
abc|123|2012-01-30|2012-04-28|xyz
have to convert to:
abc 123... (6 Replies)
Hi guys,
I need to know how i can ignore Pipe '|' if Pipe is coming as a column in Pipe delimited file
for eg:
file 1:
xx|yy|"xyz|zzz"|zzz|12...
using below awk command
awk 'BEGIN {FS=OFS="|" } print $3
i would get xyz
But i want as :
xyz|zzz to consider as whole column... (13 Replies)
Hello All,
Thanks for taking time to read through the thread and for providing any possible solution.
I am trying to pivot a comma separated field in a pipe delimited file. Data looks something like this:
Field1|Field2
123|345,567,789
234|563,560
345|975,098,985,397,984
456|736
Desired... (8 Replies)
Hi, I have a rquirement in unix as below .
I have a text file with me seperated by | symbol and i need to generate a excel file through unix commands/script so that each value will go to each column.
ex:
Input Text file:
1|A|apple
2|B|bottle
excel file to be generated as output as... (9 Replies)
Discussion started by: raja kakitapall
9 Replies
LEARN ABOUT HPUX
calendar
calendar(1) General Commands Manual calendar(1)NAME
calendar - reminder service
SYNOPSIS DESCRIPTION
consults the file in the current directory and prints out lines containing today's or tomorrow's date anywhere in the line. On weekends,
``tomorrow'' extends through Monday.
When a command-line argument is present, searches for the file in each user's home directory, and sends any positive results to the user by
(see mail(1)). Normally this is done daily in the early morning hours under the control of (see cron(1M)). When invoked by reads the
first line in the file to determine the user's environment.
Language-dependent information such as spelling and date format (described below) are determined by the user-specified statement in the
file. This statement should be of the form where language is a valid language name (see lang(5)). If this line is not in the file, the
action described in the section is taken.
is concerned with two fields: month and day. A month field can be expressed in three different formats: a string representing the name of
the month (either fully spelled out or abbreviated), a numeric month, or an asterisk (representing any month). If the month is expressed
as a string representing the name of the month, the first character can be either upper-case or lower-case; other characters must be lower-
case. The spelling of a month name should match the string returned by calling (see nl_langinfo(3C)). The day field is a numeric value
for the day of the month.
Month-Day Formats
If the month field is a string, it can be followed by zero or more blanks. If the month field is numeric, it must be followed by either a
slash or a hyphen If the month field is an asterisk it must be followed by a slash The day field can be followed immediately by a blank or
non-digit character.
Day-Month Formats
The day field is expressed as a numeral. What follows the day field is determined by the format of the month. If the month field is a
string, the day field must be followed by zero or one dot followed by zero or more blanks. If the month field is a numeral, the day field
must be followed by either a slash or a hyphen If the month field is an asterisk, the day field must be followed by a slash
EXTERNAL INFLUENCES
Environment Variables
determines the format and contents of date and time strings when no statement is specified in the file.
determines the language in which messages are displayed.
If is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty vari-
able. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of If any internationalization
variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See environ(5).
International Code Set Support
Single- and multi-byte character code sets are supported.
EXAMPLES
The following file illustrates several formats recognized by calendar:
In the following file, dates are expressed according to European English usage:
WARNINGS
To get reminder service, either your calendar must be public information or you must run from your personal file, independent of any run
systemwide. Note that if you run yourself, the calendar file need not reside in your home directory.
extended idea of ``tomorrow'' does not account for holidays.
This command is likely to be withdrawn from X/Open standards. Applications using this command might not be portable to other vendors'
platforms.
AUTHOR
was developed by AT&T and HP.
FILES
to figure out today's and tomorrow's dates
SEE ALSO
cron(1M), nl_langinfo(3C), mail(1), environ(5).
STANDARDS CONFORMANCE calendar(1)