Search Results

Search: Posts Made By: JohnMario
7,316
Posted By JohnMario
Solved; I wish I had asked you guys 6 hours ago
Thanks,

both work fine.

but i need the quotes to compare, so I'll use the sed version.

I wish I had thought of that.
7,316
Posted By JohnMario
need help cut -f3 -d"," or sed?
Would appreciate any help you could offer.
I have this .CSV
i need to get the third column

example row:
"002010XX","they can andwill, enter,anything","+CODE","","","","","","

cut thinks the...
2,818
Posted By JohnMario
change order of fields in header record
Hello,
after 9 months of archiving 1000 files,
now, i need to change the order of fields in the header record.
some very large, space padded files.
HEADERCAS05212008D0210DOMEST01(spacepadded to...
2,631
Posted By JohnMario
need to space fill a 2060 byte record
Calling all experts:

When I ftp from Mainframe to unix server, the ftp message says fixed length 2060, but i lose trailing spaces.
I tried a solution i found here,
awk ' {...
20,073
Posted By JohnMario
pass a variable to sed p in a loop?
drl, This is above and beyond helpful.
Thanks very much,
You were quite right, about the inefficiency.
my data file is 219532, non-delimited records. the list is 15,500.
(and I have dozens of...
20,073
Posted By JohnMario
it woiks!
It's always best to follow "Best Practises"
sed -n "${j}p"

Thanks very kindly drl,

note to SMAC, thanks,,,, but
no errors, but it returned every line
not the specific lines in the list.
20,073
Posted By JohnMario
pass a variable to sed p in a loop?
Hi, Thanks for looking,,,,
(kornshell)
tmp3 is a list of line numbers
I want to print the lines from my list
code:
while read j
do
echo $j #works...
Showing results 1 to 7 of 7

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