Search Results

Search: Posts Made By: grinder182533
4,261
Posted By grinder182533
sed etc
I did thanks anbu23, but then got the last 3 characters on the right on line 5 remaining, as previously illustrated.
I could always add a 2nd sed command to strip off the last 3 characters
of line...
4,261
Posted By grinder182533
sed etc
Hi anbu
It is the b argument which is not liked :

sed: 0602-419 Cannot find or open file b.

I am running with AIX Version 4
man sed
sed Command
Purpose
Provides a stream editor.
Syntax...
4,261
Posted By grinder182533
sed etc
I guess I must have mistyped.
I'll retry.
Many thanks
4,261
Posted By grinder182533
sed solution
Thats great thanks anbu
Just one last thing....
The currency code at the end of line 5 remains.


Can we get rid of it from this line ?
Many thanks
4,261
Posted By grinder182533
sed example
Hi Anbu23

input

Ref: 12345678^M
Value Date: 28-MAY-2006^M
Debit A/c: 54321235 - abcdef^M
Customer : 100210547 - abcdef^M
Debit Amount: ...
4,261
Posted By grinder182533
sed solution
Thanks Anbu23
When I posted yesterday, I simplified my problem, thinking that I could follow your logic, and apply it to my actual problem.
In fact, it is line 5 position 32 before which the CR/LF...
4,261
Posted By grinder182533
sed query
I have a series of folders /temp/a /temp/b /temp/c

In folders a, b, and c, I have files
a1.txt..........a20.txt
b1.txt..........b40.txt &
c1.txt..........c60.txt

Each file has the same data...
1,824
Posted By grinder182533
sed script
:rolleyes:

I have a series of folders /temp/a /temp/b /temp/c

In folders a, b, and c, I have files
a1.txt..........a20.txt
b1.txt..........b40.txt &
...
5,228
Posted By grinder182533
;) many thanks aigles
;) many thanks aigles
3,490
Posted By grinder182533
data manipulation script
I have a folder called {homedata}
Within this folder there are 12 subfolders 200601.......200612
Within each subfolder there are 8 sets of files
Each filename commences with A B C D E F G or H, ...
5,228
Posted By grinder182533
script to loop around folders
I have a folder called {homedata}
Within this folder there are 12 subfolders 200601.......200612
Within each subfolder there are 8 sets of files
Each filename commences with A B C D E F G or...
2,679
Posted By grinder182533
Thanks again Glenn ;)
Thanks again Glenn ;)
2,679
Posted By grinder182533
spliting up a huge file
I have a file {filename} which contains 65000 records
I need to split into 6 smaller files roughly 11000 records each.
Can someone advise me of the Unix command to do so ?

Many thanks
1,510
Posted By grinder182533
Thanks Glenn
Thanks Glenn
1,510
Posted By grinder182533
sed command
I have a file which is variable in length,
and has a ^ character as a delimiter

Eg

^a^bb^ccc^dd^e^
^ffff^gggg^h^I^jj^

There are always 6 delimiters and 5 fields

I need to strip off...
2,872
Posted By grinder182533
Many thanks Vino Working perfectly !
Many thanks Vino
Working perfectly !
2,872
Posted By grinder182533
multi loop script
I need to run a process a large number of times.
In /home/runx, I have process X, which accesses a file X.ini.
X.ini contains 3 variables, as follows :

X_date=ccccmm
X_location=aaa
X_type= t
...
Showing results 1 to 17 of 17

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