Search Results

Search: Posts Made By: tasmac
1,550
Posted By balajesuri
There should be no dollar before "fulldate". ...
There should be no dollar before "fulldate".
fulldate=20130430Dollar should be outside the curly braces.
bdate=`${fulldate:0:4}-${fulldate:4:2}-${fulldate:6}`
1,556
Posted By Don Cragun
Doesn't cleanfile.sh need an operand? Try: for...
Doesn't cleanfile.sh need an operand? Try:
for f in $fulldate/trades/*.trade
do
echo "Processing $f into $f.csv"
./cleanfile.sh "$f" & #step1
done
wait # This waits for all of the jobs...
18,764
Posted By Yoda
I said to run /usr/xpg4/bin/awk not awk awk...
I said to run /usr/xpg4/bin/awk not awk

awk is broken on SunOS / Solaris.
18,764
Posted By Corona688
This should remove all non-ASCII characters: tr...
This should remove all non-ASCII characters:
tr -d '\200-\377' < inputfile > outputfile outputfile cannot be the same as inputfile.
18,764
Posted By rdrtx1
try: perl -pe 's/[^[:ascii:]]//g' infile
try:
perl -pe 's/[^[:ascii:]]//g' infile
11,060
Posted By Yoda
awk is broken in SunOS / Solaris. Use nawk...
awk is broken in SunOS / Solaris. Use nawk instead.
11,060
Posted By shamrock
What is your OS?
What is your OS?
11,060
Posted By Scrutinizer
How about: awk...
How about:
awk -F'[[:alnum:]]*[_[:alpha:]]+[[:alnum:]]*:' '{$1=$1; sub(OFS,x)}1' OFS=" , " file

output:
FILL , , 73 , 03/05/13 10:40:17.920 , 03/05/13 10:40:17.919 , 0 , 0 , 0
FILL ...
Showing results 1 to 8 of 8

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