Search Results

Search: Posts Made By: dc18
24,919
Posted By dc18
Still need solution
Hi Scott,

Input file

01,10,000020,*,*,******,999999,00,,WERK 28 - BUS
01,10,000030,*,*,******,999999,00,,WERK 30 - UNIMOG
01,10,000060,*,*,******,999999,20,,LASTWAGEN...
24,919
Posted By dc18
Hi Scott, I'm afraid your solution only...
Hi Scott,

I'm afraid your solution only works if there there are no spaces within the text ......... each space found within the text is also padded out to 18 spaces

Dave
24,919
Posted By dc18
Hi Scott, You mention 'change the 10th column'...
Hi Scott,
You mention 'change the 10th column' , I need to change the 10th field in the .csv file (the actual start column of field 10 will vary) .... does your solution still apply ?
Dave
24,919
Posted By dc18
changing a variable length text to a fixed length
Hi,
Can anyone help with a effective solution ?

I need to change a variable length text field (between 1 - 18 characters) to a fixed length text of 18 characters with the unused portion, at the...
35,271
Posted By dc18
file in / file out
Hi,
If input record is

123456789EXAMPLE DESCRIPTION 1234

I want
12EXAMPLE DESCRIPTION (with 3 spaces betwee EXAMPLE & DESCRIPTION & 4 spaces at end)

but I get
12EXAMPLE...
35,271
Posted By dc18
Advice using cut & echo combination commands
Hi,
I am cutting data from a fixed length test file and then writing out a new record using the echo command, the problem I have is how to stop multiple spaces from being written to the output file...
Showing results 1 to 6 of 6

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