Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: rakeshawasthi
Forum: AIX 11-19-2009
13,462
Posted By rakeshawasthi
There might be some issues in this, will try to...
There might be some issues in this, will try to kill itself...
and what if more than one process are idle...you may get issues...

Actually there is no way we can check our script...

Try:

ps...
1,285
Posted By rakeshawasthi
Below should do: sed 's|check...
Below should do:


sed 's|check OK|error!|g'

or

awk '{gsub("check OK","error!");print}'
3,692
Posted By rakeshawasthi
Use cmp $var1 $var2
Use

cmp $var1 $var2
4,435
Posted By rakeshawasthi
Check if it solves your purpose: awk...
Check if it solves your purpose:

awk 'NR==FNR{a[$0]=$0;next}{a[$1]=$0}END{for (i in a) print a[i]}' f1 f2
3,070
Posted By rakeshawasthi
I do not think you can do that. You may need to...
I do not think you can do that. You may need to change the PL/SQL code.
40,898
Posted By rakeshawasthi
Or try this: filepath=$PWD
Or try this:

filepath=$PWD
1,481
Posted By rakeshawasthi
I could not get what you want... Please provide...
I could not get what you want...
Please provide one example.
1,227
Posted By rakeshawasthi
Try something like: nawk -v fld="${f1}"...
Try something like:

nawk -v fld="${f1}" '$1==fld { print fld" "$2}' $DICT

your rest code remains same to avoid changing the logic
15,686
Posted By rakeshawasthi
I know, you should have tried after seeing the...
I know, you should have tried after seeing the previous solution.
Try:


awk '/^~/ {gsub(/~/,"",$1); gsub(/~/,"",$2); gsub(/~/,"",$3); gsub(/~/,"",$4); print $1","$2","$3","$4}' b

If you are...
15,686
Posted By rakeshawasthi
For a simliar thread I replied. Was that not...
For a simliar thread I replied. Was that not working after I gave corrected solution?

---------- Post updated at 08:09 PM ---------- Previous update was at 08:08 PM ----------
...
2,640
Posted By rakeshawasthi
The below line should be re-written.. cat $f...
The below line should be re-written..

cat $f | awk -F'*' '{print $1}' > $f


Try:

awk -F'*' '{print $1}' $f > _temp
mv ${_temp} $f
9,440
Posted By rakeshawasthi
Sorry did not get your req correct... Try: ...
Sorry did not get your req correct...
Try:

awk '/~/ {gsub(/~/,"",$1); gsub(/~/,"",$3); print $1","$3}' b
1,301
Posted By rakeshawasthi
Could not follow what logic is being used to get...
Could not follow what logic is being used to get the desired output. It would help us if you explain the logic a bit...
9,440
Posted By rakeshawasthi
Try: awk '/~/ {$1=sub(/~/,"",$1);...
Try:

awk '/~/ {$1=sub(/~/,"",$1); $3=sub(/~/,"",$3); print $1","$3}' b
16,266
Posted By rakeshawasthi
show the content of filelist... are you putting...
show the content of filelist... are you putting them in a single line??
1,905
Posted By rakeshawasthi
-k1.5,1.8 means the data will be sorted for first...
-k1.5,1.8 means the data will be sorted for first field from 5th to 8th character.
So, suppose you have,

02082008
03082008
04082009
05082007

The output would be

05082007...
3,501
Posted By rakeshawasthi
while read line do ... done < file ...
while read line
do
...
done < file


is the fastest way to read a file, i think. But since you are avoiding 'while', your options are limited to awk, cut, sed etc.
4,050
Posted By rakeshawasthi
simple... echo $EachRecord | cut -f1...
simple...

echo $EachRecord | cut -f1 -d"your_delimiter"
1,328
Posted By rakeshawasthi
What I posted was also adding the | What extra...
What I posted was also adding the |
What extra you want, please let me know, I am not clear.
2,838
Posted By rakeshawasthi
Hint: loop thru' FIle 2 Get the first...
Hint:

loop thru' FIle 2
Get the first column value in a variable var1
look for var1 in col2 of FIle1 #using grep may be
when you get the line, take the first column value
print the line of...
3,501
Posted By rakeshawasthi
I remember seeing this post...but that thread was...
I remember seeing this post...but that thread was closed.

When you assign to variable, will the variable be same each time??
And when you redirect to another file, that another file will have...
2,190
Posted By rakeshawasthi
Can you give us what is the value of each and...
Can you give us what is the value of each and every variable before the for loop starts...
You if-else statement might not be allowing xnum to execute...
Give detailed requirement.

----------...
2,190
Posted By rakeshawasthi
Where are you changing the xnum...somehow I am...
Where are you changing the xnum...somehow I am unable to understand your problem...sorry.
2,190
Posted By rakeshawasthi
Your loop is not looping 4 times, it will do 5...
Your loop is not looping 4 times, it will do 5 times.
5,469
Posted By rakeshawasthi
It is because your java program is not at the...
It is because your java program is not at the same place where your csv file is...

Try...

#if you have passed the absolute path, it will take the .csv name
mInputValue=`basename $mInputValue` ...
Showing results 1 to 25 of 375

 

Featured Tech Videos

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