Search Results

Search: Posts Made By: keeferb
1,742
Posted By keeferb
That ran(I am on Solaris), but something still...
That ran(I am on Solaris), but something still isn't quite right. The record length before adding the date is fixed 750 characters. I need the date added to every line, including the header, to...
1,742
Posted By keeferb
Hmmm....doesn't seem to like that... ...
Hmmm....doesn't seem to like that...


[MBM10.0.1p6/test] # awk 'NR==1{d=$9}{$0=d$0}1' TEST.FILE.CONV
awk: syntax error near line 1
awk: bailing out near line 1
[MBM10.0.1p6/test] #
1,742
Posted By keeferb
pull date from header and append to all records
I did some searches, but couldn't really find what I'm looking for. I have a file formatted as below:

BOF ABC CO - XYZ COMM DATA OF 07/05/2011
EBA00000001 sdfa rtyus uyml
EBB00000001...
11,753
Posted By keeferb
I get an error message "awk: record...
I get an error message "awk: record `0000000007654592010-...' too long", which is referring to the first record in the file.

There are several thousand records in this file(when viewed in a file...
11,753
Posted By keeferb
Adding a line feed to each line
Hi folks,

I did a search on this and didn't really find what fit my needs. I have a file with fixed record length of 436 bytes. I want to add a line feed x"0A" to the end x"0A" of each record(in...
1,658
Posted By keeferb
I'm not sure if I'm following...is this always...
I'm not sure if I'm following...is this always comparing to 8/1/2011? If so, then no. What I'm hoping for is that the compare will dynamically use the current year. So when I run the script now,...
1,658
Posted By keeferb
I think that's close, but not quite correct. I...
I think that's close, but not quite correct. I think you're only comparing the month and day. I probably didn't explain it clearly. Given your input file, the 7/25/2011 should be on the file...
1,658
Posted By keeferb
comparing field to current year
Hi,

I have a comma delimited file that contains name, account number, and account date/time(example record below). I want to pull off all the records that have an account date greater than 8/1...
2,517
Posted By keeferb
That worked - thanks! What does the * do?
That worked - thanks! What does the * do?
2,517
Posted By keeferb
I tried that but it removes everything from the...
I tried that but it removes everything from the file.
2,517
Posted By keeferb
I've attached a sample file with only one record....
I've attached a sample file with only one record. The record is 4725 bytes long. The 2 occurrences of the ' """ ' pattern are at byte 1068 and 4721.

Thanks.
2,517
Posted By keeferb
help with sed command
I'm trying to remove a string of characters from a file using the following command:

sed 's/ """ //g' file1 > file2

The string consists of a space, 3 double-quotes, space. There are 2...
Showing results 1 to 12 of 12

 
All times are GMT -4. The time now is 05:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy