Search Results

Search: Posts Made By: Leedor
3,175
Posted By RudiC
I didn't test this in ksh, but it should easily...
I didn't test this in ksh, but it should easily be adapted:# set -vx
for HF in F57DWHDR*
do if [[ "${HF:8:14}" -ge 20130101000000 ]]
then grep -qv \*$ $HF
case $?...
3,175
Posted By RudiC
I think it would be easier if you phrased the...
I think it would be easier if you phrased the requirements in plain English, supported by sample data. My imagination right now does not suffice to understand your pseudo code (e.g. what do you...
3,373
Posted By alister
Hi, Lee: Perhaps the following will do the...
Hi, Lee:

Perhaps the following will do the trick for you:
sed '/^M$/{N; s/.\n//;}'That solution will discard a final line ending with \r\n since there's nothing to merge it with. If that's...
Forum: Programming 12-06-2010
2,692
Posted By Corona688
It means what it says it means. You're trying to...
It means what it says it means. You're trying to return a const char * as a char *.

I have no idea what you're doing now, but whatever it is, you shouldn't be doing that. Are you at least...
Forum: Programming 12-06-2010
2,692
Posted By achenle
Just take the orginal and change the return...
Just take the orginal and change the return statement at the end to this:

return( ::strdup( StrOut.c_str() ) );Just make sure you call ::free() on the returned pointer. Not delete - ::free().
...
Forum: Programming 12-06-2010
2,692
Posted By Corona688
Not here it doesn't. In C++, undeclared...
Not here it doesn't. In C++, undeclared externals are a flat-out error. At the very least it should be a warning, which you the programmer should treat as an error because using undeclared...
5,789
Posted By rdcwayx
Generate title file: awk 'FNR==1' File*.csv |tr...
Generate title file:
awk 'FNR==1' File*.csv |tr "," "\n" |sort -u > title.txt

"ColA"
"ColB"
"ColC"
"ColD"
"ColE"
"ColF"
"ColG"


create the subfolder Super

mkdir Super

Get the...
5,231
Posted By Franklin52
Try this: awk -F,...
Try this:
awk -F, '/^FileHeader/{s=$2;sub(".csv","",s);fn=s "-" $3 ".csv"}{print > fn}' OFS="," file
Showing results 1 to 8 of 8

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